1This is for windows - type on the command line to list all node_modules folders:
2For /d /r . %d in (node_modules) Do @IF EXIST "%d" echo %d
3
4To delete all the listed folders:
5For /d /r . %d in (node_modules) Do @IF EXIST "%d" del /Q "%d"
6
7The /Q flag is "Quiet mode" - Does not ask if ok to delete on global wildcard