Delete node_modules folder recursively from a specified path using command line

I have multiple npm projects saved in a local directory. Now I want to take backup of my projects without the node_modules folder, as it is taking a lot of space and can also be retrieved any time using npm install.

So, I need a solution to delete all node_modules folders recursively from a specified path using the command line interface.
Any suggestions/ help is highly appreciable.

9 Answers
9

Leave a Comment