cd myTooBigFolderToBackup
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
Created
March 7, 2025 12:28
-
-
Save mpalourdio/df6901979c05650adb100129ee8c9e36 to your computer and use it in GitHub Desktop.
Cleanup recursively all node_modules in a specific folder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment