When you delete files and folders from your computer, they are not permanently deleted from your hard drive. They persist in the Trash and consume space.
In this Windows 10 tutorial, I’ll show you the steps to automatically empty the recycle bin using task scheduler to keep your hard drive space free.
Automatically empty trash using Task Scheduler in Windows 10
Step 1: Go to Start search box and type ” Task Scheduler ” and press Enter to open Task Scheduler window
Step 2: Right-click on Task Scheduler Library and click New Folder .
Step 3: Give a descriptive name to the new folder like My Tasks .
Step 4: Right-click on the folder you created in the above step and click Create Task .
Step 5: On the General tab, enter the name of the task, such as “ Empty Windows Recycle Bin “.
Step 6: Click OK .
Step 7: On the Triggers tab, click New to create an action.
Step 8: Select a task start time from the drop-down. Choose other details like the time and date accordingly.
Step 9: Click OK .
Step 10: Go to the Actions tab and click New .
Step 11: In the Programs / script field , type cmd.exe .
Step 12: Add the following arguments and click OK .
/ C “echo Y | PowerShell.exe -NoProfile -Command Clear-RecycleBin”
Step 13: Click OK .
When you complete the above steps, the task will run automatically according to your specified schedule and will empty the recycle bin automatically.