I had a requirement to delete all .svn directories in my folder in windows. This is how i did it
for /r %R in (.svn) do if exist %R (rd /s /q "%R") (OR) for /f "usebackq" %d in (`"dir *.svn /ad/b/s"`) do rd /s/q "%d" (OR) del /s/q *.svn (Or) for /d /r . %d in (.svn) do @if exist "%d" rd /s/q "%d" (Or) FOR /F "tokens=*" %G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%G"
In *nix Systems
to find : find . -type d -name .svn
to Delete : rm -rf `find . -type d -name .svn`