Update clear-recycle-bin.ps1

This commit is contained in:
Markus Fleschutz 2021-09-01 13:55:49 +02:00 committed by GitHub
parent 14d7a4b137
commit 90a7f3dda1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,9 @@
<# <#
.SYNOPSIS .SYNOPSIS
clear-recycle-bin.ps1 clear-recycle-bin.ps1
.DESCRIPTION .DESCRIPTION
Removes the content of the recycle bin folder (can not be undo). Removes the content of the recycle bin folder.
NOTE: can not be undo!
.EXAMPLE .EXAMPLE
PS> .\clear-recycle-bin.ps1 PS> .\clear-recycle-bin.ps1
.NOTES .NOTES
@ -13,7 +14,7 @@
try { try {
Clear-RecycleBin -Confirm:$false Clear-RecycleBin -Confirm:$false
"✔️ recycle bin have been emptied" "✔️ cleared recycle bin"
exit 0 exit 0
} catch { } catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"