Recursively remove all SVN folders

If you work with SVN programs like Tortoise SVN then you might like this script. If you like automating stuff then you’ll also like this. Save this as a Windows BAT file, and copy it to the root folder that you want to wipe out all “.svn” folders. Run it and it will magically clean everything recursively.

@echo off
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *.svn') do (rd /s /q "%%i")

Comments are closed.