Recently, we saw how to clean up the temp directory automatically in Windows 10 using a simple batch file. In this article, we will see how to perform the same task using the built-in Disk Cleanup tool (cleanmgr.exe). Unlike the batch file, it shows a progress window with messages and a progress bar which gives you an idea of how long the operation will take.
Every Windows version uses a special directory which stores temporary files. These files are created by various Windows services, installed apps and tools. Temporary files can be safely deleted after the process which has created them has quit. However, this does not happen often, so the temporary directory continues to store them and fills your disk drive with junk. Here is how to clean up the temp directory automatically in Windows 10.