Is there a way to delete all subdirectories named .svn from all levels of a directory tree, without touching anything else? rd/s and del/s don't seem to do it.
If your hard disk is NTFS, you can use the free Everything search engine.
After it's installed, right click on the directory and select "Search Everything...".
Then type *.svn to see all such named files and sub-directories.
Click on the first in the list, then type ctrl-A to select the whole list, then type Del to delete them all.
I see this question asked all the time for users of SVN, you do NOT need a special script to get rid of those pesky .svn folders.
I don't know what platform you are on, but you can use:
To make SVN make a copy of your working copy without the .svn folders.