Skip to content

Instantly share code, notes, and snippets.

@ielijose
Created September 20, 2018 21:45
Show Gist options
  • Save ielijose/8730736f37005a3cf0d76daa6ebcf467 to your computer and use it in GitHub Desktop.
Save ielijose/8730736f37005a3cf0d76daa6ebcf467 to your computer and use it in GitHub Desktop.
Delete all node_modules folders recursively
for /d /r . %d in (node_modules) do @if exist "%d" (echo %d && rd /s/q "%d")
@ielijose
Copy link
Author

Just list folders:
for /d /r . %d in (node_modules) do @if exist "%d" (echo %d)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment