PowerShell cmdlet of the Day : Clear-RecycleBin

Do you love sweets? I love them.  And there are some Powershell cmdlets those are tooo sweet like a sweet.

If you want to clear/ empty your recycle bin, there is a very sweet Powershell cmdlet available for it, which is Clear-RecycleBin .

Just run the cmdlet, and it will empty your recycle bin.  You can incorporate this cmdlet to your TEMP file cleaning scripts too.Clear-RecycleBin

If you just run the Clear-RecycleBin, it will ask you for Yes/No confirmation, you can –                        -Confirm:$falseto omit it.

Clear-RecycleBin -Confirm:$false


Reference link – http://newdelhipowershellusergroup.blogspot.in/

Posted by Sheikvara

+919840688822, +919003270444


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s