How to: Delete svn entries from folder and sub-folders in windows

If you are hobbyist programmer or actively use Tortoise SVN for version control, they you might encounter situation where you need to delete svn entries from folders (including sub-folders), while copying your folders into to your backup device or copying to a USB or even copying to another network location.

Deleting individual svn entries from each folder is a mountainous task. Here goes a simple registry file that adds an option to delete svn entries from folder (including sub folders) from your context-menu.

image

The original script is given below. Copy paste the script into a notepad and change the extension from .txt to .reg. Run the file, there you are! Please note, you might need admin privilege to execute registry files.

Windows Registry Editor Version 5.00 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders" 
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""

 

Download

Courtesy: To the original geek who shared with me.