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 a task scheduler to keep your hard drive space free.
Automatically empty trash using Task Scheduler in Windows 10
Step 1: Go to the Start search box and type ” Task Scheduler,” and press Enter to open the 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 clicked Create Task.
Step 5: On the General tab, enter the task’s name, 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 automatically run according to your specified schedule and automatically empty the recycling bin.