Skip to content

Instantly share code, notes, and snippets.

@adamskt
Created October 27, 2015 20:54
Show Gist options
  • Save adamskt/d1ddcaeae89e37912257 to your computer and use it in GitHub Desktop.
Save adamskt/d1ddcaeae89e37912257 to your computer and use it in GitHub Desktop.
Clean up bin/obj files in a solution, now with WhatIf support
function Exterminate {
[CmdletBinding(SupportsShouldProcess = $True)]
Param($path = ".")
Get-ChildItem -Path $path -Include bin,obj -Recurse | Remove-Item -Recurse -Force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment