Recursively delete all .svn folders

If you are a developer or working with a developer and Subversion then you occassionaly you might need to upload your project to a ftp server ofcourse without uploading thousand of files inside those .svn folders. There is a simple command to remove all these recursively under Linux. Obviously it does not matter what Linux distribution you are using. Just do what described here.

If you want to clean up .svn folders please issue the following command inside the CMS directory:

find . -name ".svn" -type d -exec rm -rf {} \;

The above command will recursively delete all .svn folders.

Posted on: 04/02/2011

If you want to leave a comment please Login or Register