Last active
November 4, 2018 18:58
-
-
Save aaronhoffman/17e2d902bbcdcb8b65c58cac2124f8ad to your computer and use it in GitHub Desktop.
Clean up source code directory. Delete all bin, obj, node_modules, bower_components, and packages directories.
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
# delete all bin,obj,node_modules,bower_components,packages,.vs, and *proj.user files and directories | |
Get-ChildItem . -include bin -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } | |
Get-ChildItem . -include obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } | |
Get-ChildItem . -include node_modules -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } | |
Get-ChildItem . -include bower_components -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } | |
Get-ChildItem . -include packages -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } | |
Get-ChildItem . -include .vs -Hidden -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } | |
Get-ChildItem . -include *proj.user -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment