We use SVN to store all of our source code here at Sitening. And, like most people who use it, you often find yourself in need of cleaning out all the .svn directories that it creates. There’s no easy way to do this without turning to the command line - and that’s not an option for non-programmers.
To fix this problem, I whipped up a small Finder plugin using Automator that adds a new menu when you right-click on a folder. With one click you can remove all the .svn directories inside it. Download the plugin here.
To install, simply unzip the file and drag it into your Library/Workflows/Applications/Finder directory. If that folder doesn’t exist, you’ll need to create it. Now, whenever you right click on a folder, you should see the following menu.

I hope this helps all the non-techie SVN users out there.
P.S. - For the geeks in the audience, the command I’m using to remove the .svn folders is
find . -name .svn -print0 | xargs -0 rm -rf



April 6th, 2007 at 10:21 pm
You don’t need the -print0 or -0 flags; “find . -name .svn | xargs rm -fr” will do the same thing.
April 8th, 2007 at 7:18 pm
Aha. That’s easier.
June 19th, 2007 at 9:59 am
You know that you can always do an svn export and get a clean copy of whatever is in your repository without the subversion metadata, right?
June 19th, 2007 at 10:07 am
Yep, but this is good for less technical users. Dropping into a terminal window isn’t always an option for everyone. But, you’re right. Exporting would work, too.
September 4th, 2007 at 8:53 pm
Re: Colin - You can avoid the -print0 and -0 flags, but then I’m pretty sure it’ll have trouble with paths including spaces; if one happens to have directory names with spaces, it’ll fail with those directories.
A better alternative is using find itself to perform the command (note the slash-semicolon):
find . -name .svn -exec rm -rf {} \;
October 15th, 2007 at 9:33 am
PAY ATTENTION. I was cheking out the plug-in installation and I clicked the “Remove…” command from my desktop. As a consequence, it has erased all the .svn in ALL the network volumes I had mounted. We have lost hundreds of working copies that now need to be recreated. A note on this would have been appreciated…
The plugin works like a bomb, very powerful, but very, very dangerous…
October 15th, 2007 at 10:26 am
Yikes, sorry about that Andre.
Adding a -x argument to the find command will prevent find from spanning across physical volumes.