This command will print out each folder and also show how much space the folder is occupying.
find . -name "node_modules" -type d -prune -print | xargs du -chsfind . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" echo %d"FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rm -rf "%d"Get-ChildItem -Path "." -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force