Last active
June 7, 2019 10:32
-
-
Save manualbashing/4277eb26444bf6497cc8 to your computer and use it in GitHub Desktop.
Empty the recycle bin on a Windows system
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
$Shell = New-Object -ComObject Shell.Application | |
$RecBin = $Shell.Namespace(0xA) | |
$RecBin.Items() | %{Remove-Item $_.Path -Recurse -Confirm:$false} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment