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