Skip to content

Instantly share code, notes, and snippets.

@ngtrieuvi92
Created November 20, 2019 00:38
Show Gist options
  • Save ngtrieuvi92/60688999dd0123a455bb247bb9f6bb50 to your computer and use it in GitHub Desktop.
Save ngtrieuvi92/60688999dd0123a455bb247bb9f6bb50 to your computer and use it in GitHub Desktop.
delete all node_modules
# Find add 'node_modules'
find . -name "node_modules" -type d -prune -print | xargs du -chs
# Delete all
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment