Skip to content

Instantly share code, notes, and snippets.

@klinkby
Last active November 28, 2024 10:11
Show Gist options
  • Select an option

  • Save klinkby/994e2e4e69085df622c359b7d4a60279 to your computer and use it in GitHub Desktop.

Select an option

Save klinkby/994e2e4e69085df622c359b7d4a60279 to your computer and use it in GitHub Desktop.
Reclaim space from build and publish output recursively
Get-ChildItem -LiteralPath 'd:\' -Recurse -Directory |? { $_.Name -match '^(bin|obj|test-results|TestResults|Publish|dist|node_modules)$' } | Remove-Item -Recurse -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment