Unix Recusive Delete Using Find

Today I found myself needing to delete a .svn directory from a Radiant CMS extension I wanted to use (the developer left them in the download, tsk tsk). Anyway, I didn’t want to traverse all of the folders myself, so I found this nifty article over at IBM that gave me what a wanted, which was this:

find . -name .svn -ok rm {} \;

2 thoughts on “Unix Recusive Delete Using Find

  1. Kyle

    That’s a good one, I found a command a while back that did something similar:

    rm -rf `find . -type d -name .svn`

    same thing :)

  2. bill

    Cool. I love how there’s so many different ways to do thins on *NIX. I’ll just add this one to my bag of tricks!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.