Broken Remote

March 3, 2009

Recursively Delete .svn directory [Windows]

Filed under: software — Tags: , , , , , — Broken Remote @ 3:19 am

Here’s a quick and easy way to delete that pesky .svn directory (recursively) so you don’t have to do it. This is useful when rearranging your subversion folders or for just removing old SVN data you don’t need anymore. Just create a .bat file with the following text, place the file into the main directory, then run it. It will delete all the .svn folders in the current directory and all those under it:

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.