12 April 19, 07:11
Quote:Continue Reading
All files that you delete regularly on Windows are moved to the Recycle Bin first. Designed as a last resort to recover accidentally deleted files, files that sit in the Recycle Bin may sit there for a long period. While that is not a huge problem most of the time, if disk space is scarce, it may be frustrating to empty the Recycle Bin manually regularly.
You could set a custom Recycle Bin size to avoid it occupying too much space on a drive, or, use automation to clear the Windows Recycle Bin regularly.
This guide offers a general solution to the Recycle Bin problem, and a specific solution that is only available on Windows 10 devices.
General Solution for all Windows versions
The following method is compatible with all Windows versions and editions. It requires the creation of a batch file and running that batch file either using a policy or as a startup command.
1. Right-click on the desktop or another folder and select New > Text Document.
2. Paste the following line of code into the document: PowerShell.exe -NoProfile -Command Clear-RecycleBin -Confirm:$false
3. Save the document.
4. Rename it to emptyrecyclebin.bat. Make sure the file has the .bat extension and not .bat.txt.
5. Test the file once to make sure it works.