You can make the Recycle Bin automatically empty whenever you shut down your PC. Let’s see how.
In this instance, I’m using a Windows 11 PC.
Empty the Recycle Bin When Shutting Down the PC
Here are the steps:
Open Notepad. Type the following command in it: PowerShell.exe -NoProfile -Command Clear-RecycleBin -Confirm:$false
Save it as a batch file. The extension of the batch file is “bat.”
Remember that the double-click of this batch file will empty your Recycle Bin.
Launch the local group policy editor. You can do it by pressing Windows + R, typing gpedit.msc, and pressing the Enter key.
Go to Computer Configuration > Windows Settings > Scripts (Startup/Shutdown).
Right-click on the Shutdown in the right pane and select Properties.
Click on Add in the popup. Hit Browse and select the batch file. Click Open.
Hit the OK button. Hit OK.
That’s all. From now on, whenever you restart or shut down your PC, the Recycle Bin becomes empty.
Note: You can stop this if you want. Follow the steps above to open Shutdown Properties. Now you need to select the batch file and hit the Remove button. Click on the OK button.
I hope this guide, “How to Empty the Recycle Bin When Shutting Down the PC,” is helpful to you.
Thanks for reading.