Last active
February 20, 2021 21:33
-
-
Save shubham-vunet/54c99f1adbc96c6b035295f7eda75665 to your computer and use it in GitHub Desktop.
Clean Disk by removing node_modules, bin and obj directories
This file contains hidden or 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
// PowerShell | |
Get-ChildItem .\ -include bin,obj,node_modules -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } | |
// List and Size Linux | |
find . \( -name "node_modules" -o -name "obj" -o -name "bin" \) -type d -prune | xargs du -chs | |
// Linux | |
find . \( -name "node_modules" -o -name "obj" -o -name "bin" \) -type d -prune -print -exec rm -rf '{}' + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment