Windows has a set of tools that enable the user to make his computer perform some simple tasks without the need for any user intervention or being in front of his computer, and in this topic we will learn how to use one of these tools to make the trash can empty itself automatically at the times that you specify for it It will be useful to you especially if you are deleting many things from your computer, so continue with me.
All you have to do is go to the search box in Windows, and then type taskschd.msc, which is a tool that enables you to program your computer to perform recurring and automatic tasks.
Click on the Task Scheduler library folder with the right mouse button, then create a new task by clicking on the Create Basic Task option as shown in the image:
Now choose a name for the task, you can name it any name you want, but it is preferable that it has a meaning such as the Empty Recycle bin, for example, and then click on the Next button.
Choose the time at which this task will be executed, for example if you choose daily, the Recycle Bin will be emptied on a daily basis.
Then in the Action option, click on the start a program option, then type cmd.exe in the first box and paste this command in the second box as shown in the image: