Thursday, June 18, 2009

How to recursively delete folders

I keep searching for this command in Linux, here is how to recursively delete folders:
rm -fr `find . -name foldername`

I like to use this command to clean a repository of subversion folders, for example:
rm -fr `find . -name .svn`

Labels:

1 Comments:

At 12:47 AM , Anonymous Anonymous said...

Or just rm -rf your_folder is ok.. :|

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home