Home » Questions » Computers [ Ask a new question ]

With Debian, how can I remove a directory that isn't empty?

With Debian, how can I remove a directory that isn't empty?

In Debian, I want to remove a subdirectory of my home directory. When I try to remove it (with sudo), I get a message saying the directory is not empty, but I cannot see any file inside the directory with ls -l.

Asked by: Guest | Views: 235
Total answers/comments: 1
Guest [Entry]

"Try

ls -a -l

To show hidden files, then remove them.

Or, to force the directory and everything inside it to be deleted, try:

rm -r directory"