Created
June 1, 2025 16:22
-
-
Save vguhesan/b0e39e3ffa5744ade12c87a367833a7d to your computer and use it in GitHub Desktop.
Prune / Remove all contents of node-modules directory in all subdirectories below current working directory
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
#!/bin/bash | |
# Delete all node_modules directories recursively | |
find . -type d -name "node_modules" -print0 | xargs -0 rm -rf | |
echo "All node_modules directories deleted." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment