Forums

Delete directory not working?

From within the Files tab I used to be able to click on the Delete icon against a specific directory, then say Yes to the confirmation check message and the directory (and any files in it) would be deleted. But this doesn't seem to work anymore - no confirmation check appears and nothing happens. I can create new directories and files without any problem but it seems I can't delete anything.

Same here. Confusing.

Hi there,

Thanks for letting us know. Looking into this right now.

It seems as though our js popup for deleting directories/files isn't popping up. Will continue to look into this.

btw- a temporary solution for now- you can just do a rm path-to-folder or a rm -r path-to-folder from the console.

All working again now - many thanks Conrad.

Thanks for confirming!

Tried and it didn't work for me rm path to folder…. And rm -r path to folder

it seems : rm: cannot remove 'my path': Permission denied

You have files in the directory that you do not have permissions for. You can fix it with:

chmod -R 777 "my path"

and then try the deletion again

Thank you so much Glenn All working now

Glad to hear that!

I can't delete tmp/ folder because no root access. Can't even chmod and change dir rights. Please assist!

You still can delete its contents.

Am trying to delete a directory but am getting this error

rm: remove write-protected regular file '/home/biggiesudo99/Popcornflix/.git/objects/3d/e6a351d2415362fc6f1712ac9da5e3ad66337e'? 
rm: cannot remove '/home/biggiesudo99/Popcornflix/.git/objects/3d': Directory not empty
rm: remove write-protected regular file '/home/biggiesudo99/Popcornflix/.git/objects/1b/438bcf5fde30276c05b1151c4dca3faf7e86ec'? yes
rm: remove write-protected regular file '/home/biggiesudo99/Popcornflix/.git/objects/99/72940f690396bdb2f8e5abe52d69d64a1e5e9c'? 
rm: cannot remove '/home/biggiesudo99/Popcornflix/.git/objects/99': Directory not empty
rm: remove write-protected regular file '/home/biggiesudo99/Popcornflix/.git/objects/50/7369536f2425c01e346f619072428fadf29ee8'? ls
rm: cannot remove '/home/biggiesudo99/Popcornflix/.git/objects/50': Directory not empty

Kindly help

[edit by admin: formatting]

If you've made files write-protected somehow, then you will either need to enter "yes" for each one while deleting it, or write-enable them. A quick way to write-enable a directory and all subdirectories is this:

chmod -R +w /home/biggiesudo99/Popcornflix/.git