Sometimes, you may need to remove hidden CVS/SVN folders from the multi lever hierarchical folders. You do not want traverse to each folder and remove hidden folders. There is a easy way to do that. Below is the text which you need to copy it to notepad and save it as .reg file. Make sure you change what folder you want to delete and change appropriately in the text.
For example the below snippet is for deleting CVS folders. If you want to delete the SVS, replace CVS with SVN or .SVN or even _SVN.
1: Windows Registry Editor Version 5.00
2:
3: [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVS]
4: @="Delete CVS Folders"
5:
6: [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVS\command]
7: @="cmd.exe /c \"TITLE Removing CVS Folders in %1 && FOR /r \"%1\" %%f IN (CVS) DO RD /s /q \"%%f\" \""
This will add a new context menu to folders with the name “Delete CVS Folders”, once you hit this it will recursively delete all the CVS folders.
Note: You cannot get back your deleted folders. Take extra caution while doing this operation.