Could not remove the folder [Folder name]. Show more details Error removing file: Directory not empty Cancel-Skip All-Skip
I tried to delete these folders from terminal with:
Did you try sudo rm -r. What kind of files are there? You could also delete all the files first then delete the folder. Its extra work, but sometimes t worth it to get the job done.
Sudo is for superuser actions.
Go to the folder right before the one you want to delete and execute this command changing foldername by the name of your folder: rm -rf foldername
R means recursive, and f means force.
I had this same issue with a folder on a btrfs filesystem. Checking mount and lsof normally reveals the cause (You cannot delete a mountpoint while it is mounted). With btrfs also, a subvolume would give a similar issue as the only way to delete a subvolume is to use the "btrfs subvolume delete <path>" command.
In my case I think the issue was a bug. The problem folder was inside a subvolume. I ended up backing up all my data in that subvolume and simply deleting the subvolume entirely. I then restored my data into the subvolume sans the problem folder.
i_size of an empty folder in btrfs should be zero. In ext I believe it should be 4k.