Skip to content

Instantly share code, notes, and snippets.

@mikecabana
Last active August 11, 2020 21:26
Show Gist options
  • Save mikecabana/1338e570afe0c2ffb8404f51caf343a3 to your computer and use it in GitHub Desktop.
Save mikecabana/1338e570afe0c2ffb8404f51caf343a3 to your computer and use it in GitHub Desktop.
Remove recursively node_modules folders on Windows machines using powershell
# Windows Powershell
# 1. cd into the root directory you want to start from
# 2. run the follwing command
Get-ChildItem -Path "." -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment