How to empty the Recycle Bin automatically on schedule on Windows 10

When you click the delete button on a file, you're not actually deleting it from your computer. It only gets moved to the Recycle Bin, which continues to use valuable space on the hard drive.

Even though chances are you already know how to empty the Recycle Bin, you often forget to do such a simple task. Then it's not until you're running out of space that you go through the steps to manually empty the trash to delete all its content for good.

Although there are number of ways you can configure the Recycle Bin on Windows 10 (and previous versions), emptying the trash on schedule is not one of them.

In this Windows 10 guide, we'll walk you through the steps to automatically empty the Recycle Bin using the Task Scheduler to keep the hard drive space optimized, while giving you enough time to recover deleted files.

How to automatically empty the Recycle Bin on schedule

  1. Open Start, do a search for Task Scheduler, and press Enter.
  2. Right-click Task Scheduler Library and click New Folder.

  1. Name the folder My Tasks or anything descriptive. (You want to do this to keep your tasks organized and separated from the system tasks.)
  2. Right-click the newly created folder and select Create task.

  1. On the General tab, enter a name for the task, such as Empty Windows Recycle Bin.

  1. On the Triggers tab, click New to create an action that will trigger the task.

  1. For the purpose of this guide, I'll select and configure On a schedule, but you can pick from a number of trigger actions, including At log on, At startup, On an event, and more.Quick Tip: If you're using the schedule option as a trigger, consider using the Weekly or Monthly option, which will give you some time to recover deleted files.

  1. On the Actions tab, click New.

  1. Under Settings, on Programs/script enter cmd.exe.
  2. Under Settings, on Add arguments enter the following argument and click OK:/c "echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin"
  3. Click OK to complete the task.

Once you completed the steps, the task will run automatically at the trigger condition you have configured.

More Windows 10 resources

For more help articles, coverage, and answers on Windows 10, you can visit the following resources:

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.