Skip to content

Instantly share code, notes, and snippets.

@oskarrough
Last active April 16, 2017 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oskarrough/74c7d1ace0102662cbd162b0b7b74fea to your computer and use it in GitHub Desktop.
Save oskarrough/74c7d1ace0102662cbd162b0b7b74fea to your computer and use it in GitHub Desktop.

Run this to recursively delete all node_modules folders.

find . -name "node_modules" -type d -prune -exec rm -rf '{}' +

There is no undo. Please use https://github.com/sindresorhus/trash-cli instead of rm -rf if you want to be safe(r).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment