PowerShell Empty Trash

By Xah Lee. Date: . Last updated: .
empty trash.

write a function empty-trash to call Clear-RecycleBin. So it's much easier to type.

put this in your PowerShell Profile

function empty-trash {
    # call Clear-RecycleBin -force
    Clear-RecycleBin -Force

PowerShell How-To

Install and Help

list files

list dirs

on dir

on file

Windows config

zip tar