Prune ALL node_modules
in directory recursively:
# List all node_modules
find . -name "node_modules" -type d -prune | xargs du -chs
# Prune all node_modules
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
Prune ALL vendor
in directory recursively:
# List all vendor
find . -name "vendor" -type d -prune | xargs du -chs
# Prune all vendor
find . -name "vendor" -type d -prune -exec rm -rf '{}' +