I am sure that at some point of time(may be before delivering the project to client) you must have encountered a situation where you need to delete all “.svn” folders from your project directory. And it is really frustrating to go to each and every folder and delete the “.svn” folder manually.
I found a small script which will add an item to your context menu.
Here is the script, simply copy it and save it as a registry file such as “delete_svn_folder.reg”
Windows Registry Editor Version 5.00
; Running this file will give you an extra context menu item in Windows Explorer
; "Delete SVN folders"
; For the selected folder, it will remove all subfolders named ".svn" and their content
; Tip from http://www.iamatechie.com/remove-all-svn-folders-in-windows-xp-vista/
; Enrichened with comments by Jesper Rønn-Jensen ( http://justaddwater.dk/ )
@="Delete SVN Folders"
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""
Run it by double clicking on the file. It will ask you whether you want to add it to the registry, click Yes and you are done.
Now whenever you right click on a folder, you will notice that you have a new item in context menu “Delete SVN Folders” and if you click on it, it will do the job for you.