Created
March 28, 2023 08:33
-
-
Save cleanunicorn/9213e4a4ef4489aa6ec4d189fa8ca9f0 to your computer and use it in GitHub Desktop.
Remove node_modules for infinite new space
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
#!/bin/bash | |
echo "Searching for node_modules directories..." | |
find . -type d -name "node_modules" -prune -exec echo "Removing {}" \; -exec rm -rf {} \; | |
echo "All node_modules directories have been removed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment