How to schedule automatic emptying of the trash

There are some applications or programs that perform work on our personal computers that always go unnoticed, and this is the case of the recycle bin, in which we have all types of files, but which are not permanently deleted from our equipment .. And in the next article we will show you a trick that will allow you to  schedule automatic emptying of the trash.

<a name=How to schedule automatic emptying of the trash" src="/images/posts/a1829d2e6bd8ab040ed2314230c01650-0.jpg">


But because the recycle bin does not delete the files we send there, for the simple reason that you want to recover them later. But there is a problem and that is, when we add a file to the recycle bin, it is taking up disk space that we might need. Then every now and then you have to clean or empty the bin.



But how useful it would be if you could schedule automatic emptying of the trash and thus avoid the continuous monitoring of this application. And the pleasant surprise is that if there is a very easy way to do it then we will explain it to you. Just as we explain that the basket is assigned a space or a dimension.

How to schedule automatic emptying of the trash

So to do this, we will create a task that will free us from being aware of the recycle bin, for its subsequent emptying and reclamation of disk space. But it would also be useful to know how much space the bin has. And the first thing we're going to do is type in the Windows search engine, Task Scheduler.

After pressing the Enter key, a window will appear, we will find ourselves on the left side and search the Task Scheduler Library. You select it and then right-click to bring up a menu and choose in it New folder. Name this folder, then hover over this folder and right click and choose the option Create activity.




Now you will be shown the window Create activity and in it you can see several tabs, in the General tab, you can add data about the task to be created. In Name you will place for example Automatic emptying of the recycle bin or something similar. The next step is to go to the tab trigger and then click New.

Options for scheduling automatic emptying of the trash

In this window we can see that we are offered many options to configure the emptying of the recycle bin. We can see options like Once, Daily, Weekly, Monthly, which is the option we recommend, but it all depends on each user's needs. We can also insert a date, a day, a week, a month, etc.

After determining when we want the task to run, to automatically empty the recycle bin, we need to click on the OK option. The next step is to go to the Actions tab and in it we will click on the New option. In the Program or script field you need to write the following cmd.exe.


And in the Add arguments field (optional) you have to write / c «echo Y | PowerShell.exe -NoProfile -Command Clear-RecycleBin »and then you have to click on the OK option. Then you have to click on the Open windows and in this way the activity you just created is saved with the configuration you gave it.



<a name=How to schedule automatic emptying of the trash" src="/images/posts/a1829d2e6bd8ab040ed2314230c01650-1.jpg">

In this way we have carried out or scheduled automatic emptying of the trash and on the date we set. If we want to change the date for another, we can do it by following the steps we have explained here. You see how easy it is to make changes to our PC when we know what to do.


add a comment of How to schedule automatic emptying of the trash
Comment sent successfully! We will review it in the next few hours.