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?
Similar Posts
- Copy all folder content to another folder In Ubuntu
- Create a new directory or folder in Ubuntu
- Get total size of a directory or folder in Ubuntu
- Change directory name or rename a directory in Ubuntu
- Copy a directory along with its content to another directory in Ubuntu
- Delete all empty directories in a directory in Ubuntu
- Find all empty directories in a directory in Ubuntu