Home > Linux Tutorials > Removing .svn Folders Recursively

Removing .svn Folders Recursively

July 7th, 2009

While porting projects to Git, I needed a way to remove all of the .svn folders in each project.  I don’t need the archived svn data in this case so it is safe to simply remove all folders labeled: ‘.svn’.

Use Find to locate the svn folders
find . -name ‘.svn’

Append the argument rm -R to remove them
find . -name ‘.svn’ | xargs rm -R

admin Linux Tutorials

Comments are closed.