ubuntu

Remove or Delete a folder or directory in Ubuntu

The commands are helpful to delete or remove a directory from the folder.

# Delete a directory
------------------------------------------------
rm -rf DIRECTORY_NAME

# If show - Permission error
------------------------------------------------
sudo rm -rf FOLDER_NAME

# If not on the same level of the folder
------------------------------------------------
sudo rm -r /path/to/FOLDER_NAME
Was this helpful?