Delete Folders using Command Line(Recursively)

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")

for /f "usebackq" %d in (`"dir *.svn /ad/b/s"`) do rd /s/q "%d"

del /s/q *.svn


for /d /r . %d in (.svn) do @if exist "%d" rd /s/q "%d"


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`