@alex_gadget
Linux Nov 04, 2026

rmdir won't delete a folder in ubuntu

Trying to remove a folder from the terminal and rmdir says directory not empty. I want the folder and everything in it gone. What's the right command, and is there a safe way to double check before I run it?
1

Leave A Reply

Log in to post an answer.

1 Answer

samf Nov 05, 2026
alex_gadget
rmdir only removes empty folders. use rm -r foldername instead. add sudo if it says permission denied, but double check the path before you hit enter, there's no recycle bin for that.