In an earlier post I informed you on how to remove all of your subversion folders from a project using powershell. Now I would like to tell you how to remove all of your pdb, cs, resx, and any other specific type of file from a directory and its children.
>> Get-ChildItem -Recurse -force |where {$_.Extension -eq ".cs"} | foreach ($_) {remove-item -force -recurse $_.fullname}The above will remove all files that end with ".cs" from the current directory and any child directories. I learned this the hard way, if you replace the -eq with -match you will also remove any .css files. Therefore, make sure you are using the equality switch. If you are interested in removing any other type of file, simply replace "cs" with your specific extension.