Last active
August 23, 2023 08:46
-
-
Save JCPurger/e50fd0bbb44e56f5f7aa7b4410117922 to your computer and use it in GitHub Desktop.
Node modules recursive find and delete
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
| // List | |
| find . -name "node_modules" -type d -prune -print | xargs du -chs | |
| // Delete | |
| find . -name 'node_modules' -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