Created
March 23, 2024 13:26
-
-
Save ephraimduncan/f6a5d6476f4f85ae1e7c1125ca3dd5e6 to your computer and use it in GitHub Desktop.
Recursively delete all node_modules in all packages in a monorepo
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
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + -exec sh -c 'echo "Deleted: $1"' _ {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment