There are certain applications or programs that perform work on our personal computers that always goes unnoticed, and this is the case of the recycle bin, in which we discard all kinds of files, but they are not permanently deleted from our computer . And in the next article we will show you a trick that will allow you to program the automatic emptying of the recycle bin.
But because the recycling bin does not delete the files that we send there, for the simple reason that you want to recover them later. But there is a problem and that is that, as we add files to the trash, it is taking up space on the disk that we may need. Then every so often we must clean or empty the trash.
But how useful it would be if you could program the automatic emptying of the recycle bin and thus avoid the continuous monitoring of this application. And the pleasant surprise is that there is a very simple way to do this and then we will explain it to you. Just as we explained that the recycling bin is assigned a space or size.
How to schedule automatic emptying of the recycle bin
So to do this, we are going to create a task that will free us from being aware of the recycle bin, for its later emptying and recovery of disk space. But it would also be good to know how much space the trash can has. And the first thing we are going to do is write in the Windows search engine, Task Scheduler.
After you press the Enter key, a window will appear in it, we will locate ourselves on the left side and look for Task Scheduler Library. You select it and then right click to bring up a menu and in it choose New Folder. Give this folder a name, then hover over this folder and right click and choose the Create Task option.
Now the Create task window will be shown 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 are going to place, for example, Automatic emptying of the recycle bin or something similar. The next step is to go to the Triggers tab and then you need to click on New.
Options to schedule automatic emptying of the recycle bin
In this window we can see that we are offered many options to configure the emptying of the trash. We can see options such as Once, Daily, Weekly, Monthly, which is the option we recommend, but it all depends on the needs of each user. We can also place a specific date, day week month, etc.
Once you have determined when we want the task to be carried out, to empty the recycle bin automatically, we must click on the Accept option. The next step is to go to the Actions tab and in it we are going to click on the New option. In the Program or script field you must write the following cmd.exe.
And in the Add arguments (optional) field you must type /c “echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin” and then you must click on the OK option. Then you must click on the open windows and in this way the task that you have just created with the configuration that you have given is saved.
In this way we have carried out or programmed the automatic emptying of the recycle bin and on the date that we have established. If we want to change the date for another we can do it by following the steps that we explained here. You see how easy it is to make adjustments to our PC when we know what we should do.