Created
November 8, 2016 07:54
-
-
Save nzhul/24a5e8b05f6f583ef1e82418538a6fb5 to your computer and use it in GitHub Desktop.
Powershell script that can be used to delete all binary files recursively
This file contains 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
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