Last active
September 24, 2015 11:37
-
-
Save RhysC/741855 to your computer and use it in GitHub Desktop.
Powershell cleanBin (including azure folders)
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 cleanBin { | |
param ([string]$path) | |
write-host "Cleaning bin from: $path" | |
get-childitem $path -include bin -recurse | remove-item -force -confirm:$false -recurse | |
write-host "Cleaning obj from: $path" | |
get-childitem $path -include obj -recurse | remove-item -force -confirm:$false -recurse | |
write-host "Cleaning csx from: $path" | |
get-childitem $path -include csx -recurse | remove-item -force -confirm:$false -recurse | |
write-host "Cleaning BuildOutput (no recursive search) from: $path" | |
get-childitem $path -include BuildOutput | remove-item -force -confirm:$false -recurse | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cleanbin clean bin cleanBin - for search