RECOMMENDED: Click here to fix Windows errors and optimize system performance
Many of us still prefer the integrated disk cleaning tool. However, if you use the tool to delete unnecessary and temporary files, some files may still exist in the temporary folder. This is because by default Windows does not delete temporary files (.tmp) in the folder %WinDir%Temp and other folders created or accessed in the last 7 days.
Files may refer to something you download or modify. They may even be linked to an application that is still open. Windows plays security and does not delete temporary files that are less than 7 days old.
But if you wish, you can set the disk cleaning tool to delete all files from temporary folders.
Open the registry editor and navigate to the next key :
HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows CurrentVersion Explorer VolumeCaches Temporary Files
Find and double-click LastAccess. When the Edit DWORD Value dialog box appears, change the data value setting from 7 to 0 and click OK. If you set it to 0, all files are deleted. If you set it to 1, no temporary files are deleted during the last 1 days.
You may need to restart Windows for the changes to take effect.
RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance