mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 21:20:51 +01:00
Update clear-recycle-bin.ps1
This commit is contained in:
parent
14d7a4b137
commit
90a7f3dda1
@ -1,8 +1,9 @@
|
||||
<#
|
||||
<#
|
||||
.SYNOPSIS
|
||||
clear-recycle-bin.ps1
|
||||
.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
|
||||
PS> .\clear-recycle-bin.ps1
|
||||
.NOTES
|
||||
@ -13,7 +14,7 @@
|
||||
|
||||
try {
|
||||
Clear-RecycleBin -Confirm:$false
|
||||
"✔️ recycle bin have been emptied"
|
||||
"✔️ cleared recycle bin"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user