Created
October 19, 2023 05:54
-
-
Save kdmurray/51adb24c7a249b56b3ad8e1152611d73 to your computer and use it in GitHub Desktop.
node-modules-cleanup.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Directory | ForEach-Object { | |
if (Test-Path "$($_.FullName)\node_modules") | |
{ | |
Remove-Item "$($_.FullName)\node_modules" -Recurse -Force | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment