Step 1: First of all, open the Task Scheduler on your Windows. You can do that by searching for it in the start menu or using the run command “taskschd.msc” in the Run windows.

Step 2: After the Task Scheduler opens up on your computer, click on the option “Create Basic task” located under the Action category in the right panel.

Step 3: You will now see the task creation wizard from where you need to enter the name, click on the Next button, and then set up the time interval for your action or the task.

Step 4: After that, click on the Next button again and set up some other options until you reach the screen where you will be asked to set the action.

Step 5: Click on the Next button, and the on the next screen type in “cmd.exe” on the Program/Script field. Next, paste the below command in the ‘Add Arguments’ field.


/c "echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin"

Step 6: Now you need to review all the settings. Then, finally, click on the ‘Finish‘ button.

Step 7: To check the scheduled task, select the task from the main window of Task Scheduler and then click on ‘Run‘. It should empty the recycle bin automatically.

That’s it! You are done. This is how you can schedule Windows to empty the recycle bin automatically.