Skip to content

Instantly share code, notes, and snippets.

@solrevdev
Created November 12, 2022 08:30
Show Gist options
  • Save solrevdev/2e89bee9e0ba8651986fb74c9f295ad9 to your computer and use it in GitHub Desktop.
Save solrevdev/2e89bee9e0ba8651986fb74c9f295ad9 to your computer and use it in GitHub Desktop.
Powershell delete all bin and obj folders script
#!/usr/bin/env pwsh
Write-Host "Deleting bin and obj folders in this folder and sub folders"
Get-ChildItem .\ -include bin,obj -Recurse | ForEach-Object ($_) { Remove-Item $_.FullName -Force -Recurse }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment