DEV Community

Discussion on: How to delete ALL node_modules folders on your machine and free up HD space!

Collapse
 
woubuc profile image
Wouter • Edited

I've actually written a little program recently that does something like this. It cleans up generated files and dependency folders, in all projects that haven't been worked on in more than 30 days (so you don't have to run yarn install again on your current projects).

Collapse
 
markpieszak profile image
Mark Pieszak

Very cool! I like that it takes care of the -older- projects that haven't been touched in a while - I'll have to take it for a spin and give it a try!! Great work !