.

Getting rid of all svn files (for good!) in a svn folder

You can get rid of all svn files in a svn folder (If you never want to reference the repository again)
Simply run the following batch file from the parent folder where you want to start deleting from.

PLEASE NOTE: You will DELETE ALL SVN FILES from this directory onwards
- all child directories etc

copy & paste the code below in a file such as: “deletesvndata.bat” and run from the folder where you want to start removing the SVN files.

———————————-

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

———————————–

if you rather use _svn format (than .svn) use this:

———————————–

rd /s _svn
for /f "tokens=* delims=" %%i in ('dir /s /b /a:d _svn') do (
  rd /s /q "%%i"
)

———————————–

Disclaimer: This will wipe out your svn related files
THERE IS NO UNDO
so BACKUP FIRST!!
and use this
AT YOUR OWN RISK!

What's your thoughts on this?

*

Protected by WP Anti Spam