sim.plified.com

Chris Pollock

Chris Pollock - web developer (PHP/mySQL & ASP.NET)
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”

Things I see

Niagara FallsNiagara FallsNiagara FallsNiagara FallsNiagara FallsFishing TripFishing TripFishing TripFishing TripFishing TripFishing TripFishing TripFishing TripFishing TripFishing Trip

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

Niagara FallsNiagara FallsNiagara FallsNiagara FallsNiagara FallsFishing TripFishing TripFishing TripFishing TripFishing TripFishing TripFishing TripFishing TripFishing TripFishing Trip