news
Automatically Delete All Data from the “Recycle Bin” When Shutting Down the Computer.
As all Windows users know, when you delete any file by pressing the Delete key on the keyboard or by right-clicking the Delete option, it doesn’t get permanently deleted – instead, it gets stored in something called the “Recycle Bin”. Emptying this bin is something many people do, not only to avoid leaving any traces of their computer usage behind, but also to free up storage space on the hard drive. But you don’t need to open the Recycle Bin and select all the deleted files there and delete them to empty the bin – you can simply do it by right-clicking on the Recycle Bin icon on the desktop and selecting “Empty Recycle Bin” from the menu. And if you do this constantly or need to do it, then this topic will be useful for you. Here, we explain how to automatically remove all data from the Recycle Bin every time you shut down the computer.
…
After following the above steps correctly, you should end up with a batch file located in the specified location. You can easily test it by putting some files in the Recycle Bin and then double-clicking on this batch file to execute it by Windows. If all the data is removed from the Recycle Bin, then everything is working correctly. Now all we have to do is make this file run automatically every time you shut down the computer by clicking on the Shutdown option from the shutdown options in Windows.
To make the batch file run every time you shut down the computer, we need to run the Local Group Policy Editor tool. To do this, press the Windows key + R together on the keyboard to bring up the Run window where you type the command “gpedit.msc” and press OK to run the Local Group Policy Editor tool immediately. Now follow the path:
Computer Configuration > Windows Settings > Scripts > Shutdown
After double-clicking on Shutdown on the right side of the Local Group Policy Editor window, click on Add and then Browse and select the text file (batch) that we created earlier. If you followed the steps exactly, you should find the file on the desktop. After selecting the file, click OK and then OK again, and close the Local Group Policy Editor window. At this stage, everything is ready. The next time you shut down the computer, Windows will automatically run the batch file, which in turn empties the Recycle Bin.
I suggest you first test and see if everything is working correctly by putting some files you no longer need in the Recycle Bin, then shutting down the computer. If you turn it back on and find that the Recycle Bin is empty, then everything is working as it should. But keep in mind that something like this could lead to the loss of important data you may have deleted by mistake and placed in the Recycle Bin. In most cases, it is difficult – if not impossible to retrieve this data again.