🗑️ Delete all node_modules folder recursively

This will remove every node_modules folder at current folder's subdirectories

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

You can improve performance by using -maxdepth 2 arguement if your node_modules are only going to be N directory deep

Reference