Author Topic: [Closed] Can't delete Onedrive folders  (Read 2126 times)

herve

  • Junior Member
  • **
  • Posts: 28
    • View Profile
[Closed] Can't delete Onedrive folders
« on: December 28, 2024, 11:24:04 »
Hello,

I can never delete the contents of an Onedrive folder containing files and subfolders, I always get an error that forces me to use the Windows Explorer, is there a reason for this?
I have Multi Commander version 14.5 and Windows 11 Pro.

Thanks.

« Last Edit: January 01, 2025, 10:33:59 by herve »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4520
    • View Profile
    • Multi Commander
Re: Can't delete Onedrive folders
« Reply #1 on: December 28, 2024, 13:04:29 »
same as other post about one drive..
I can't find any issue with it.. I can delete without any issues.
What error do you get.. Any error message ? error code in log ?

herve

  • Junior Member
  • **
  • Posts: 28
    • View Profile
Re: Can't delete Onedrive folders
« Reply #2 on: December 28, 2024, 14:57:13 »
It says "Folder is not empty! Can't remove 'XXX'

[Skip] [Skip all] [Retry] [Cancel]

(in french)

Here is a picture:
https://imgur.com/a/ftU7r42

I have to find where are the logs.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4520
    • View Profile
    • Multi Commander
Re: Can't delete Onedrive folders
« Reply #3 on: December 30, 2024, 11:16:26 »
Might be that something has that folder open or something.
Might be more info in the Filesystem log (Ctrl+L)

herve

  • Junior Member
  • **
  • Posts: 28
    • View Profile
Re: Can't delete Onedrive folders
« Reply #4 on: December 31, 2024, 08:55:00 »
Here are some examples of messages in the log:

2024-12-31 08:49:03.817 Failed to delete folder (163) : C:\Users\XXX\OneDrive\YYY\_personnel\code\jsarrays\.git
2024-12-31 08:49:03.817 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.
2024-12-31 08:49:07.776 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\jsarrays\favicon.ico
2024-12-31 08:49:07.779 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\jsarrays\index.html
2024-12-31 08:49:07.783 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\jsarrays\index.js
2024-12-31 08:49:07.785 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\jsarrays\style.css
2024-12-31 08:49:19.155 Failed to delete folder (163) : C:\Users\XXX\OneDrive\YYY\_personnel\code\jsarrays\.git
2024-12-31 08:49:19.155 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.
2024-12-31 08:49:21.473 Failed to delete folder (163) : C:\Users\XXX\OneDrive\YYY\_personnel\code\jsarrays\.git
2024-12-31 08:49:21.473 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.
2024-12-31 08:49:22.986 Failed to delete folder (163) : C:\Users\XXX\OneDrive\YYY\_personnel\code\jsarrays\.git
2024-12-31 08:49:22.986 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.
2024-12-31 08:52:05.103 Failed to delete folder (163) : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\.vs
2024-12-31 08:52:05.103 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.
2024-12-31 08:52:10.625 Failed to delete folder (163) : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\Platforms
2024-12-31 08:52:10.625 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.
2024-12-31 08:52:12.706 Failed to delete folder (163) : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\Properties
2024-12-31 08:52:12.706 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.
2024-12-31 08:52:13.842 Failed to delete folder (163) : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\Resources
2024-12-31 08:52:13.842 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.
2024-12-31 08:52:14.339 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\App.xaml
2024-12-31 08:52:14.345 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\App.xaml.cs
2024-12-31 08:52:14.346 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\AppShell.xaml
2024-12-31 08:52:14.351 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\AppShell.xaml.cs
2024-12-31 08:52:14.353 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\MainPage.xaml
2024-12-31 08:52:14.356 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\MainPage.xaml.cs
2024-12-31 08:52:14.357 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\MauiApp1.csproj
2024-12-31 08:52:14.358 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\MauiApp1.csproj.user
2024-12-31 08:52:14.360 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\MauiApp1.sln
2024-12-31 08:52:14.363 Deleted : C:\Users\XXX\OneDrive\YYY\_personnel\code\MauiApp1\MauiProgram.cs


It's not limited to .git folders and my files and folders are not write protected.
If I go in each folder, I can remove files from Multi Commander without any problem.
« Last Edit: December 31, 2024, 08:57:29 by herve »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4520
    • View Profile
    • Multi Commander
Re: Can't delete Onedrive folders
« Reply #5 on: December 31, 2024, 11:27:28 »
I can't reproduce it. I have no issue delete things under onedrive.

Maybe some shell extension or something have some handle to some folders open, that cause it to fail to delete them.

But. Is there files left in the folders that is say are not empty? Or are they empty?
If you run Delete twice.. does it remove the folder it say was not empty ?



« Last Edit: December 31, 2024, 11:45:20 by Mathias (Author) »

herve

  • Junior Member
  • **
  • Posts: 28
    • View Profile
Re: Can't delete Onedrive folders
« Reply #6 on: January 01, 2025, 10:33:34 »
never mind, I'll close the subject

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4520
    • View Profile
    • Multi Commander
Re: [Closed] Can't delete Onedrive folders
« Reply #7 on: January 01, 2025, 13:37:14 »
Ok. Then I assume that is was issue with another program have files open.