sim.plified.com

Chris Pollock

Chris Pollock - web developer & ecommerce entrepreneur
undivided… my thoughts on world, family, church, business, technology and Jesus Christ (all in all)

Super Geeky: Removing Subversion files from a directory with Windows Powershell

There have been times when I’ve wanted to remove the .svn subversion repository folder from an entire directory.  With Windows Powershell, you can do that in a one line command:

get-childitem C:\your-directory -include .svn -recurse -force | foreach ($_) { remove-item $_.fullname -recurse -force}

The one thing I discovered is that you need to include “-force” in order for windows to “see” the hidden folders and files.

I highly recommend you add the –whatif parameter to the end of the remove-item command before you run this just to be sure its only hitting the files you want.

This article was helpful in getting me on track.

No Comments, Comment or Ping

Reply to “Super Geeky: Removing Subversion files from a directory with Windows Powershell”

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Things I see

IMG_7347BookFinally!Little peanutTime to set sailEyes openSleepy TimeAri Jeremiah PollockBig brotherBaby's HomeBike manBiker gangBirthday monopoly.$5 StarIMG_2881

Chris Pollock

Web Developer - proficient in both PHP and ASP.NET.
Rochester, New York

View my web developement site.

View Chris Pollock's LinkedIn profile

My Pictures

IMG_7347BookFinally!Little peanutTime to set sailEyes openSleepy TimeAri Jeremiah PollockBig brotherBaby's HomeBike manBiker gangBirthday monopoly.$5 StarIMG_2881