iandevlin.com

Icon

A mixture of musings on web design & development, history, and life

Recursively delete Subversion SVN directories in Windows

delete

Recently I, for reasons I won’t go into, needed to delete all Subversion _svn directories within a Microsoft Visual Studio solution directory. Now this particular solution has many folders and therefore many _svn directories to rule out going through them all and pressing the delete key.

There are plenty of example out there on how to do this in Unix based systems, but what about Windows? Well thanks to Eber Irigoyen’s blog article on this, here’s a Windows command line solution that does just that:

for /f "usebackq" %d in (`"dir *_svn /ad/b/s"`) do rd /s/q "%d"

Genius. Many thanks Eber!

http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/digg_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/reddit_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/stumbleupon_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/delicious_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/technorati_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/google_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/facebook_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/twitter_24.png

No related posts.

One Response

  1. [...] Czytaj więcej: Recursively delete Subversion SVN directories in Windows … [...]

Leave a Reply