Author Topic: Delete folders with content  (Read 55 times)

gidi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Delete folders with content
« on: Yesterday at 11:50:11 »
Hi there, I'm using current version (15.7) of MC. I'm trying to delete folders with some content (files and/or subfolders). MC forbids me to do this (telling me "Folder is not empty! cannot delete folder XXXX", allowing only to skip, skip all, retry and abort. Since I've a deep nested structure, I should go to the bottom of the structure and deleting level by level - very time-consuming. Is there an option to "force" MC to delete the folder - whatever it contains? Thanks in advance

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4820
    • View Profile
    • Multi Commander
Re: Delete folders with content
« Reply #1 on: Yesterday at 12:00:58 »
I does go down and delete every, Unless there are some issue
There must be some permission issue or other issue during the delete, Try run the application as administrator .
I can also be security software that blocks MC from deleting files.

Check fileoperation log (Ctrl+L and switch to correct log tab)


gidi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Delete folders with content
« Reply #2 on: Yesterday at 12:09:52 »
Thanks Mathias... I've started as administrator, but the File operations log simply tells me:
2025-12-23 12:07:00.982 Failed to delete folder (163) : XXXXXXXX
2025-12-23 12:07:00.982 Handle file Operations error : 163 (0) - Can not delete directory. It is not empty.

I'm not using any particular security software...

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4820
    • View Profile
    • Multi Commander
Re: Delete folders with content
« Reply #3 on: Today at 10:47:00 »
It cant delete the folder if it failed to delete some files before under it.
So there must be some error before where it failed to delete some sub files..  Windows does not allow delete of a folder if it is not empty.. so if it failed to delete some files under it. it will also fail to delete the folder.

OR something protects it or permission prevents it or something else that are special with that folder
« Last Edit: Today at 12:44:07 by Mathias (Author) »