#cli#bash#node

I needed to free up disk space by deleting all node_modules folders in a directory and its subdirectories.

This command finds all directories named node_modules and executes rm -rf on them.

find . -name "node_modules" -type d -exec rm -rf {} +

Why it works: This is a quick and effective way to clean up old projects without manually navigating into each one. The + at the end is more efficient than ; because it groups the found paths into a single rm command.