

One of the most common reason you’re unable to delete a folder is the ownership. FIX: Cannot Delete Folder In Windows FIX 1 – Take Ownership Of Folder So if you’re also facing this weird issue, below mentioned fixes may help you. We suggested him below mentioned two fixes and this resolved the problem. But he was simply unable to delete the folder. He already scanned the folder with Windows Defender and no security issues were found. He was unable to delete a folder in the root drive. Recently, one of our reader contacted us regarding this problem. The point is when either of these not works, what is the next option? Well, in this article, we’ll discuss such issue where you can’t normally delete a folder. Or you can simply right click on a folder and select Delete. You simply highlight the folder you want to erase and press Delete button on keyboard. In ext it is typically 4k.Deleting a folder in Windows is not a tough job. The i_size of an empty folder in btrfs should be zero. Btrfs uses the i_size to tell whether or not the folder is empty. The cause in my case was found to be corruption of i_size, where it was non-zero. I was then able to restore into a new subvolume, leaving out the problem folder. I backed up my data and deleted the subvolume: btrfs sub del. In my case the problem folder was inside a subvolume so I was able to do the above but by deleting only the subvolume instead of the entire filesystem. Depending on how much data you have in the filesystem, this can be a chore. In the case of corruption where it cannot easily be fixed, the basic workaround is to back up, format the filesystem, and then restore (leaving out the bad data).

Note that if you leave out the "+D ", lsof will show a listing for all folders on all filesystems - which will waste time. You cannot delete a folder that contains open files, though that would also normally give a slightly different error: "Device or resource busy".

I had this issue with a folder on a btrfs filesystem.
