Skip to content
Nirav MehtaSearch

Recursively delete all .svn folders

Needed to quickly delete all .svn folders and files within them from a machine where svn client was not setup. Here's how: bash #!/bin/sh echo "recursively…

Needed to quickly delete all .svn folders and files within them from a machine where svn client was not setup.

Here's how:

#!/bin/sh
echo "recursively removing .svn folders from"
pwd
rm -rf `find . -type d -name .svn`

Taken from: Any Example

2 comments

Comments are closed - these are preserved from the original posts.

  1. shashi

    One more way:

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

  2. Sanjay

    Single quote is not working on Linux
    find . -type d -name ‘.svn’ -exec rm -rf {} \;

    The right way is:
    find . -type d -name ".svn" -exec rm -rf {} \;

Esc to closeopen the full search page