candland

@candland rss self
March 9th 2007

Deleting files recursively with PowerShell

This is not the hardest script to come up with, but I can think of a few times I could have used something like this.

ls -rec -inc .svn -fo | foreach {del $_ -rec -fo}
It will delete any file or folder named .svn in the current directory or below.

blog comments powered by Disqus