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