Skip to content

Instantly share code, notes, and snippets.

@mikecabana
Last active August 11, 2020 21:06
Show Gist options
  • Save mikecabana/e591d164a05ac98a8b9fa4eeef94d26a to your computer and use it in GitHub Desktop.
Save mikecabana/e591d164a05ac98a8b9fa4eeef94d26a to your computer and use it in GitHub Desktop.
Remove recursively node_modules folders on Windows machines
REM Windows CMD
REM List all the node_modules folders
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" echo "%d"
REM Remove all the node modules folders
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" del /q /s "%d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment