Directory deletion question



I have some directories that I’d like to get rid of (the spamassassin install stuff that’s not needed after installation, for example) that are full of files and subdirectories and more subdirectories and so on. Right now the only way I know of to get rid of them is to delete every file en masse in a subdirectory, delete the subdirectory, and so on. Very tedious, so I’ve been putting off cleaning up my space.

Is there a command for unix similar to the deltree command in DOS? I figure there’s got to be one, but I haven’t been able to find anything with a google search.

Thanks in advance for any help!


rm -Rf directory

-R is for “recursive” (deletes everything inside the directory too)
-f is for “force” (skip any “override permissions” type prompts)


Fantastic - thank you!