Skip to content

Instantly share code, notes, and snippets.

@agbaraka
Created August 20, 2019 05:29
Show Gist options
  • Save agbaraka/e24fca2a131ae9362260b6ac3b83d18b to your computer and use it in GitHub Desktop.
Save agbaraka/e24fca2a131ae9362260b6ac3b83d18b to your computer and use it in GitHub Desktop.
Recursively delete all node_modules folder found in projects folder
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment