Tip - How to remove all the files in a directory?

Published  | Submitted by Kevin Jackson
How to remove all the files in a directory?

I am trying to remove all files and subdirectories in a directory. I used rm -r to remove all files, but I want to remove all files and subdirectories, excluding the top directory itself. For exam...

About Author

More by Kevin Jackson

About This Tip

Posted: 9 years, 2 month(s) ago

164 Reads
0 Votes