windows/*: add PowerShell commands and aliases (#11227)
* windows/*: add PowerShell commands and aliases * clear-host, new-item, remove-item: fix style * psversiontable, remove-item: fix style --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
153b670288
commit
bcdc05b986
17
pages/windows/clear-recyclebin.md
Normal file
17
pages/windows/clear-recyclebin.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Clear-RecycleBin
|
||||
|
||||
> Clear items from the Recycle Bin.
|
||||
> This command can only be used through PowerShell versions 5.1 and below, or 7.1 and above.
|
||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.management/clear-recyclebin>.
|
||||
|
||||
- Clear and delete all items inside the Recycle Bin:
|
||||
|
||||
`Clear-RecycleBin`
|
||||
|
||||
- Clear the Recycle Bin for a specific drive:
|
||||
|
||||
`Clear-RecycleBin -DriveLetter {{C}}`
|
||||
|
||||
- Clear the Recycle Bin without further confirmation:
|
||||
|
||||
`Clear-RecycleBin -Force`
|
Reference in New Issue
Block a user