In a system Windows 10 The files we delete are moved to the Recycle Bin. This gives us the option to recover them later. While this is useful, it's also important to empty the Recycle Bin from time to time. If you often forget to empty the Recycle Bin, a smart thing to do is to have the Recycle Bin do this automatically.
By scheduling Windows to automatically empty the Recycle Bin, you'll save your storage space from filling up quickly. In this post, we'll cover ways to do this.Make emptying the Recycle Bin automatic And ways to prevent Windows from automatically deleting files on Windows 10. So, let's get straight to the point.
How to schedule Windows to empty the Recycle Bin
There are two ways you can automatically delete files from the Recycle Bin. You can either use the Storage Sense option in the Windows 10 Settings menu or use the Task Scheduler to schedule the task to repeat periodically. Here are both.
1 . method
You can enable and configure Storage Sense on Windows 10 to automatically empty the Recycle Bin.
Step 1: press the . key Windows + I To open Settings and move to the system.
Step 2: There, navigate to Storage Settings using the left sidebar. On the right, turn on Storage Sense if it isn't already. Then, click Configure Storage Sense or turn it on now.
Step 3: On the next page, check the "Delete temporary files not used by my apps" box under Temporary files. Then, use the drop-down menu to choose from the available time period options.
You can choose to purge the contents of the Recycle Bin daily, biweekly, monthly, or once every two months.
Once configured, Windows will automatically empty files from the Recycle Bin.
The second method
Alternatively, if you want more options when setting up a schedule to empty the Recycle Bin, you can use the Task Scheduler on Windows 10.
Step 1: Open the Start menu, type "Task Scheduler," and press Enter. In the Task Scheduler window that opens, right-click the Task Scheduler library and select New Folder. Give this folder an appropriate name, such as "New Task."
Step 2: Right-click on the newly created folder and choose Create Task option from the menu.
Step 3: In the Create Task window, give this task an appropriate name like “Auto Clear Recycle Bin”.
Step 4: Now go to the Triggers tab, and click the “New” button to set up a trigger for this particular task.
Step 5: Here, you can choose from multiple ways to start the task. For example, you can choose to start the task according to a schedule, when you log in, when you start, etc.
Next, enter the appropriate time and date, then select whether to set it to repeat daily, weekly, or monthly. Then click OK.
Additionally, you can also set an expiration date for this trigger under Advanced Settings.
Step 6: Now go to the Actions tab and select New.
Step 7: Under Settings, in the Programs/Script box, type cmd.exe. In the Add Arguments box,
Paste the command shown below and press OK. Then select OK again.
/ c "Echo Y | PowerShell.exe -NoProfile -Command Clear-RecycleBin"
Now that the task has been created successfully, the Recycle Bin will be automatically emptied when the trigger conditions match.
How to stop the Recycle Bin from deleting
If you want to prevent Windows from automatically deleting files from the Recycle Bin, you can easily do so by turning off Storage Sense or deleting the task in Task Scheduler.
Using the storage feature
If you have Storage Sense enabled on Windows 10, here's how to prevent it from automatically emptying the Recycle Bin.
Step 1: press the . key Windows + I To open Settings and move to the system.
Step 2: There, navigate to Storage Settings using the left sidebar. On the right, turn off the Storage Sense switch. To further configure Storage Sense, click the "Configure Storage Sense or turn it on now" option.
Step 3: On the next page, under Temporary files, use the drop-down list to select Never.
That's it. Windows will now no longer delete files from the Recycle Bin unless you do so manually.
Task schedule
If you've used Windows Task Scheduler to empty the Recycle Bin periodically, here's how to stop the task.
Step 1: Open the Start menu, type Task Scheduler, and press Enter.
Step 2: In the Task Scheduler window, right-click on the created task and simply delete it.
Alternatively, if you want to enable the task in the future, simply disable the task instead of deleting it.
Don't be slow, recycle.
Setting the Recycle Bin to automatically delete files can be a useful way to manage storage on Windows. If you're looking to free up more storage space on your computer, consider Clear cache Also to free up space without losing any of your files.