Home » Questions » Computers [ Ask a new question ]

In Ubuntu how do I delete a directory and everything underneath it?

In Ubuntu how do I delete a directory and everything underneath it?

In Ubuntu how do I delete a directory and everything underneath it, including directories and their contents?

Asked by: Guest | Views: 220
Total answers/comments: 2
Guest [Entry]

"What you are describing is called a recursive remove. To do this, open a shell and type:

rm -r /path/to/directory"
Guest [Entry]

rmdir: The rmdir command will delete an empty directory. To delete a directory and all of its contents recursively, use rm -r instead.