Part 1. How to Automatically Empty the Recycle Bin on a Schedule

When attempting to delete a file or folder, you're not truly removing it from your computer; instead, it's simply relocated to the Recycling Bin,继续占用硬盘上的宝贵空间。虽然你可能需要知道如何手动清空回收站,但你可能会忘记自动的步骤。

In this Windows 10 guide, we'll show you the steps to automatically empty the Recycle Bin using the Task Scheduler, which will help keep your hard drive space optimized while still providing enough time to recover accidentally deleted files.

1. Open Start, search for Task Scheduler, and press Enter.

Open Task Scheduler to Auto Empty Recycle Bin

2. Right-click the Task Scheduler Library and click New Folder.

create a new task

3. Name the folder "My Tasks" or anything descriptive that suits your needs. (This helps keep your tasks organized and separate from the system tasks.) Right-click on the newly created folder and select "Create Task."

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

enter details of the task on general tab Please note that the image you've provided seems to be a screenshot from a software interface. The text on it, when translated into English, reads: "Enter the details of the task on the General tab." This suggests a section in a program where users would input specifics about a task they want to perform, likely related to data recovery or file management, under a "General" settings or options tab.

5. On the Triggers tab, click New to create an action that will initiate the task.

create a new action on the triggers tab Create a new action under the Triggers tab.

6. For the purpose of this guide, I'll choose and set up "On a schedule," but you can select from various trigger actions, such as "At log on," "At startup," "On an event," and more.

put in all of your settings

If you're using the scheduling option as a trigger, consider utilizing the Weekly or Monthly option, which will provide you with a window of time to recover deleted files.

7. On the Actions tab, click New.

open action tab

  • Under Settings, in the Programs/script field, enter "cmd.exe."
  • Under Settings, in the Add arguments field, enter the following argument and then click OK:

Click /c "echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin" and then press OK to finish the task.

click OK to finish your task settings

Once you've completed these steps, the task will run automatically when the trigger condition you've configured is met.

Part 2. Prevent Automatic Deletion of Recycle Bin in Windows 10

Below are two methods to help you prevent the Recycle Bin from automatically deleting files.

Method 1: Delete the Task Scheduler

If you have created a new task to let your Recycle Bin empty itself, you can delete the task and the auto-deletion will stop immediately.

Method 2: Modify Recycle Bin Settings

Step 1. Open the Settings app. Go to System > Storage.

Step 2. Click on the "Change how we free up space" link. Deselect the second option: "Delete files that have been in the Recycle Bin for over 30 days."

uncheck the second option to stop recycle bin auto deletion

Then, your Recycle Bin will stop deleting files automatically.

Part 3. How to Recover Files from the Recycle Bin

If you've accidentally lost some crucial files from the Recycle Bin, you can still retrieve them with the assistance of data recovery tools. This is an excellent and user-friendly recovery tool that effectively helps restore permanently deleted files from the emptied Recycle Bin across all Windows versions. It even allows you to preview the deleted files before making a purchase. To learn the step-by-step guide on how to recover files deleted from the recycle bin in Windows 10, 8, 8.1, 7, XP, or Vista, follow this detailed tutorial.

Step 1. To recover files from the emptied Recycle Bin on Windows 11/10/8/7, hover your mouse pointer over the "Recycle Bin" option under the "Locations" section and click "Scan".

Select the Recycle Bin to Scan

Step 2. The data recovery tool will immediately initiate a quick scan for all deleted files. Following this, it will automatically perform a deep scan to search for additional lost files. Once the scanning is complete, you can utilize the "Filter" feature to choose a specific file type, such as Pictures, Word documents, videos, etc.

filter files to recover

Step 3. Once you find the files you wish to restore, double-click on them for a full preview. Next, select the target files and click "Recover." It's recommended that you choose a different volume or an external USB drive to save the recovered files, to prevent data overwrite.

recover lost files from Recycle Bin
This HTML code represents an image container with a class "img_box_pop" and a pop-up image class "pop_img". The image has an alternative text "recover lost files from Recycle Bin," a height of 466 pixels, a width of 700 pixels, and its source is dynamically set with the attribute `data-src`. The actual image source path is "/images/en/data-recovery/drw-pro/screenshots/recycle-bin-recovery-step3.png".