Web Hosting Talk







View Full Version : Brain Freeze - need to delete directory & subdirectories


BooBoo
07-15-2002, 01:25 PM
I got a case of brian freeze, what is the command to delete a directory and its subdirectories with all the files? I thought that it was rm -a directory. :dunce:

plazma
07-15-2002, 01:29 PM
rm -Rf directory

chirpy
07-15-2002, 01:38 PM
...and whatever you do, make sure you type it in right ;)

It's often a good idea to do:

rm -Rfvi <dir>

first to make sure you're doing the right thing, which you can abort if you don't want to reply to each and every prompt and then do the nicely destructive :eek: :

rm -Rf <dir>