You can write powershell with this effect, relying on npm
PS C:\code\yeoman-foo> ls node_modules | foreach { >> echo $("Deleting module..." + $_.Name) >> & npm rm $_.Name >> } >>
After executing the above command, you can delete the folder in the traditional ways ...
Go to the parent folder containing the project folder, select it and SHIFT + DEL
source share