Skip to content

Instantly share code, notes, and snippets.

@negativeeddy
Last active September 21, 2016 20:02
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 negativeeddy/5b41c297e38f0cb82415482a4475a29b to your computer and use it in GitHub Desktop.
Save negativeeddy/5b41c297e38f0cb82415482a4475a29b to your computer and use it in GitHub Desktop.
This is a powershell script that will recursively remove all the obj, bin, and packages directories from the current directory and its children.
get-childitem -Directory -Recurse | where-object {$_.Name -eq 'bin' -or $_.Name -eq 'obj' -or $_.Name -eq 'packages'} | Remove-Item -Force -Recurse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment