Skip to content

Instantly share code, notes, and snippets.

@RhysC
Last active September 24, 2015 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RhysC/741855 to your computer and use it in GitHub Desktop.
Save RhysC/741855 to your computer and use it in GitHub Desktop.
Powershell cleanBin (including azure folders)
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
}
@RhysC
Copy link
Author

RhysC commented Feb 1, 2014

cleanbin clean bin cleanBin - for search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment