Skip to content

Instantly share code, notes, and snippets.

@mayurdange
Last active October 1, 2018 09:41
Show Gist options
  • Select an option

  • Save mayurdange/9358c11b7d65ac0b4b55ea5df44ce2e1 to your computer and use it in GitHub Desktop.

Select an option

Save mayurdange/9358c11b7d65ac0b4b55ea5df44ce2e1 to your computer and use it in GitHub Desktop.
To see which folders will be deleted,
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" echo %d"
And then to actually delete them, just run this,
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rm -rf "%d"
from : https://winsmarts.com/delete-all-node-modules-folders-recursively-on-windows-edcc9a9c079e
fastest way to delete folder with many files
del /f/s/q foldername > nul
rmdir /s/q foldername
from : https://superuser.com/questions/19762/mass-deleting-files-in-windows/289399#289399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment