Skip to content

Instantly share code, notes, and snippets.

@tusharf5
Created April 19, 2019 10:35
Show Gist options
  • Save tusharf5/1241b0e476d77eeaab1b737b12ed3a6b to your computer and use it in GitHub Desktop.
Save tusharf5/1241b0e476d77eeaab1b737b12ed3a6b to your computer and use it in GitHub Desktop.
Find "node_modules" in a directory recursively and delete it
find . -name "node_modules" -type d
find . -name "node_modules" -type d -exec rm -rf {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment