recursively delete node_modules code example Example: recursively delete node_modules find . -name "node_modules" -type d -exec rm -rf '{}' +