There is an npm package that helps delete node_modules

This article was published on Feb 26, 2022, and takes less than a minute to read.

I found a CLI called npkill that, when you call it, searches for all node_modules folders (even nested) so you can easily delete it.

Of course, we could do that via rm, but the beauty of this cli is that it shows all node_modules found, each ones size, and you can select which one would be deleted:

npkill in action
npkill in action