Empty Windows Recycle Bin

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
OldGeek
Junior Coder
Posts: 29
Joined: Thu Oct 30, 2014 11:49 am
Location: Upstate NY, USA

Empty Windows Recycle Bin

Post by OldGeek » Sat Mar 23, 2024 9:18 pm

Looking for a way to empty Windows Recycle Bin.
Thanks in advance
Bob
MS v15 | Windows 11 Pro | NY, USA

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Empty Windows Recycle Bin

Post by Grovkillen » Sun Mar 24, 2024 2:48 pm

Let>ME=%Script%

Running: 15.0.27
version history

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Empty Windows Recycle Bin

Post by Grovkillen » Mon Mar 25, 2024 11:10 am

Back at work... here's the command you're looking for:

Code: Select all

Let>RP_WINDOWMODE=0
RunProgram>cmd /c PowerShell -Command " & {Clear-RecycleBin -Force}"
Let>ME=%Script%

Running: 15.0.27
version history

OldGeek
Junior Coder
Posts: 29
Joined: Thu Oct 30, 2014 11:49 am
Location: Upstate NY, USA

Re: Empty Windows Recycle Bin

Post by OldGeek » Mon Mar 25, 2024 1:48 pm

Thank you for your help
MS v15 | Windows 11 Pro | NY, USA

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts