Recursively remove all .svn directories

Every now and then I find myself in a need to this simple task of recursively removing all .svn directories from a project tree:

find . -name .svn -print0 | xargs -0 rm -rf

Rather similar method can be applied for CVS repositories as well:

find . -name CVS -print0 | xargs -0 rm -rf
This entry was posted in Posts and tagged , . Bookmark the permalink.