in Technology

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:
#!/bin/sh
echo "recursively removing .svn folders from"
pwd
rm -rf `find . -type d -name .svn`

Taken from: Any Example

Write a Comment

Comment

  1. 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 {} \;