Several years ago I posted a reg fix to disable the “Compress old files” section of Disk Cleanup.
Here’s an additional reg fix for Disk Cleanup that makes sure that all temp files in the Temp folder are deleted. By default only temp files older than sever (7) days are deleted. By altering the LastAccess value in the registry, you can configure the Disk Cleanup utility to delete all the files in the Temp folder regardless of the last accessed date. Here’s how:
- Launch the Registry Editor (Regedit.exe).
- Go to:
- Locate and double-click the LastAccess value.
- When you see the Edit DWORD Value dialog box, change the Value Data setting from 7 to 0 and click OK.
- To complete the operation, close the Registry Editor and restart Windows XP.
Changing the value to 0 will force the Disk Cleanup utility to delete all the files in the Temp folder every time that you select the Temporary Files check box.
P.S. As always, making changes to the registry …. blah, blah, blah … You’re on your own!