Skip to content

Instantly share code, notes, and snippets.

@nzhul
Created November 8, 2016 07:54
Show Gist options
  • Save nzhul/24a5e8b05f6f583ef1e82418538a6fb5 to your computer and use it in GitHub Desktop.
Save nzhul/24a5e8b05f6f583ef1e82418538a6fb5 to your computer and use it in GitHub Desktop.
Powershell script that can be used to delete all binary files recursively
param (
[string]$path = $(Read-Host "Path to folder")
)
$foldersToDelete = Get-ChildItem -Path $path -Recurse -Name "bin" -Directory | %{ Join-Path -Path $path -ChildPath $_.ToString() }
Remove-Item $foldersToDelete -Recurse -Confirm:$false
#Write-Host $foldersToDelete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment