When I am working on a project that unnecessarily has .svn folders strew about from Subversion I get a little annoyed. Luckily Linux has a solution (or is the solution!), the find command. find is a tool that can be very simple or very complex depending on how it is used. In this instance I simply want to find all directories names ‘.svn’ and delete them.
Here it is, short, sweet, and removes all .svn folder in the sub-tree
find . -name ".svn" -type d -exec rm -rf {} \;
Enjoy!