I have multiple project that uses node_modules
which i didn't touched in month.
If i can remove node_module
only that can save my 5 to 8 GB storage.
I found Command line tool to delete folder with a specified name recursively in Windows But that shows delete file in specific folder like
D:\Project\Doing\prject1\
D:\Project\Complete\Project1\
FOR /d /r . %d IN (project1) DO @IF EXIST "%d" rd /s /q "%d"
But i don't want to search every directory to look for node_module instead i want to delete all the node_module folder from my PC (all the drive) how can i do that?
If I need the node_modules back I can simply run npm install
so clearing space is good idea for me.