Created
October 27, 2015 20:54
-
-
Save adamskt/d1ddcaeae89e37912257 to your computer and use it in GitHub Desktop.
Clean up bin/obj files in a solution, now with WhatIf support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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