PowerShell | Removing SVN bindings from a directory

There are several ways to remove svn binding from a directory and its sub-directories. However, in this post, we write a PowerShell script to perform this task.  To do so, we have to remove all the enclosing directories named “.svn“.   

Following PowerShell script first gets all the directories that we want remove and then, delete them one-by-one recursively.


ls -Include .svn -Recurse -Force | foreach { del $_.FullName -Recurse -Force }

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s