1

When you run Disk Cleanup one of the categories is "Temporary Files".

  1. Where are these temporary files?
  2. Has anyone been able to copy files to that location and re-run Disk Cleanup and see the size increase?
  3. Has anyone actually verified that the files in those folder(s) get deleted?
1

2 Answers 2

2

As mentioned Windows 7 has one location, Windows 10 has 4. HKLM\Software\Microsoft\CurrentVersion\Explorer\VolumeCaches‌​\Temporary Files\LastAccess is a retention setting. By default Windows sets it to 7 days but users manually change it to 0. It will only remove files that meet the retention settings. There are two folders under Windows 10 (C:\Windows\Logs and C:\Windows\System32\Logfile) that will only be cleaned if you run cleanmgr from an elevated command prompt.

1

Where are these temporary files?

By default the files are located here:

  • C:\Temp aka %TEMP%

Has anyone been able to copy files to that location and re-run Disk Cleanup and see the size increase?

If you select the option, to wipe your temporary files, it will wipe all files in that directory which are not currently in use by a process.

Has anyone actually verified that the files in those folder(s) get deleted?

I personally, have verified, the files that were suppose to be deleted were deleted.

7
  • Also C:\Users\name\AppData\Local\Temp Commented Feb 22, 2017 at 20:22
  • Just a question. Do those paths include Windows .CAB files that are sometimes made but not deleted by windows updates?
    – rrobben
    Commented Feb 22, 2017 at 20:26
  • Windows Update files don't go to temporary files
    – Ramhound
    Commented Feb 22, 2017 at 22:44
  • 1
    The mystery is starting to unravel. The registry entry HKLM\Software\Microsoft\CurrentVersion\Explorer\VolumeCaches\Temporary Files\LastAccess is a retention setting. How many days you want to keep temporary files before deleting. The people that can copy files to the temp folder and immediately see and remove those files with Disk Cleanup have the retention set to 0. Mine, for some reason, was set to 7. So my Disk Cleanup wasn't going to see or remove what I copies to that folder for 7 days. So the next question is..... what sets that number? Why is it 0 for some and 7 for others? Commented Feb 23, 2017 at 14:58
  • 2
    @ZiggyStardust - That would be it's own question, i.e. "How do I set the retention policy on temporary files", which is seperate from "where are my temporary files stored". The default is 7 days, if you found a PC where the value was 0, then somebody manually changed it to that value.
    – Ramhound
    Commented Feb 23, 2017 at 16:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .