Skip to content

Instantly share code, notes, and snippets.

@mercuriete
Created November 26, 2021 11:34
Show Gist options
  • Save mercuriete/b3ebec2bce9b8e6b870b4c955166e9a7 to your computer and use it in GitHub Desktop.
Save mercuriete/b3ebec2bce9b8e6b870b4c955166e9a7 to your computer and use it in GitHub Desktop.
delete all node_modules
#!/bin/bash
# Please give all credit to this stackoverflow post
# https://stackoverflow.com/questions/42950501/delete-node-modules-folder-recursively-from-a-specified-path-using-command-line
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