Recursively delete Subversion SVN directories in Windows

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!
No related posts.









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