How-To: Recursively remove .svn folders
Okay, so you’ve accidentally adding a bunch of files to SVN. Or, you need to copy a bunch of files but you don’t want to take the .svn folders with you. How to get rid of these? On any *nix machine (Mac included) you can run the following command:
rm -rf `find . -type d -name .svn`

September 6th, 2009 at 9:33 pm
There is a limit on how many arguments you can pass on the command line and the method you describe can easily hit this limit.
I always use:
find . -type d -name .svn -print0 | xargs -0 rm -rf
The ‘-print0′ and ‘-0′ options deal with directories/filenames that contain spaces.