Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 help and support Forum Windows 8 Forum Vista Tutorials

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - Disk Cleanup - Last Access Limit on Temp Files

Comment
 

Disk Cleanup - Last Access Limit on Temp Files

How to Set Disk Cleanup to Delete Vista or Windows 7 Temporary Files Less than a Week Old
Published by Brink
05-23-2008
Disk Cleanup - Last Access Limit on Temp Files

How to Set Disk Cleanup to Delete Vista or Windows 7 Temporary Files Less than a Week Old

information   Information
By default Disk Cleanup cannot delete Vista and Windows 7 temporary files unless they have not been accessed in at least 7 days.

This will show you how to be able to delete these temporary files using Disk Cleanup regardless of their last accessed date.
Tip   Tip
To see how to use Disk Cleanup to clear the Vista Temporary Files, see METHOD ONE here: How to Clear Vista Temporary Files in the Temp Folder
warning   Warning
You will still not be able to delete a temporary file if it is currently use.

EXAMPLE: Disk Cleanup Temporary Files Option
disk_cleanup.jpg




OPTION ONE

Using a REG File Download
1. For No Last Access Date -
A) Click on the download button below to download the file below.
No_Last_Access_Date.reg

B) Go to step 3.

2. To Restore Default Last Access Date -
NOTE: The default time is 7 days with no access to the file before Disk Cleanup will delete the temp files.
A) Click on the download button below to download the file below.
Default_Last_Access_Date.reg

3. Click on Save, and save the .reg file to the Desktop.

4. Right click on the downloaded .reg file and click on Merge.

5. Click on Run, Continue (UAC-Vista) or Yes (UAC-Windows 7), Yes, and then OK when prompted.

6. When done, you can delete the downloaded .reg file if you like.

7. Log off and log on, or restart the computer to apply the changes.






OPTION TWO

Manually in Registry Editor
1. Open the Start Menu, then type regedit in the search box and press Enter.

2. If prompted by UAC, then click on Continue (Vista) or Yes (Windows 7).

3. In regedit, navigate to the location below. (See screenshot below)
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files
reg1.jpg
4. For No Last Access Date -
A) In the right pane, right click on LastAccess and click on Modify. (See screenshot above)

B) Type 0 (number zero) and click on OK. (See screenshot below)
Name:  Modify.jpg
Views: 8664
Size:  31.0 KB
C) The registry will now look like this. (See screenshot below)
reg2.jpg
D) Go to step 6.
5. To Restore Default Last Access Date -
NOTE: The default time is 7 days with no access before Disk Cleanup will delete the temp files.
A) In the right pane, right click on LastAccess and click on Modify. (See screenshot above)

B) Type 7 and click on OK. (See screenshot below step 4B )
NOTE: The registry will now look like the screenshot under step 3.
6. Close regedit.

7. Log off and log on, or restart the computer to apply the changes.
That's it,
Shawn




Published by
Brink's Avatar
Administrator

Join Date: Apr 2007
Location: Texas, USA
Posts: 29,548
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools

Applies to
All Vista Versions
64 Bit & 32 Bit

07-17-2008  
jodibacco


Vista Home Premium 32bit
 
 

Re: Disk Cleanup - Last Access Limit on Temp Files

Hi Shawn,
I tried both methods listed to remove temporary files and they are still there. Do I still have to wait 7 days before they can be deleted ?

My System SpecsSystem Spec
07-18-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64 SP1
Texas, USA
 
 

Re: Disk Cleanup - Last Access Limit on Temp Files

Hi Jodibacco, and welcome to Vista Forums.

This will not remove the temp files, but will only set them to be able to be removed.

This tutorial will show you how to remove them instead. However, the same temp files may still show back up if Vista loads it again for use.

Temporary Files - Temp Folder

Hope this helps,
Shawn
My System SpecsSystem Spec
Comment

 Disk Cleanup - Last Access Limit on Temp Files problems?



Tutorial Tools


Similar topics to: Disk Cleanup - Last Access Limit on Temp Files
Tutorial Category
Solved Disk Cleanup - Temp Files General Discussion
Disk Cleanup Which Files? General Discussion
question about what files i can safely use disk cleanup on ... Vista performance & maintenance
Disk Cleanup not deleting files Vista performance & maintenance
Temp files?-Disk cleanup misses them in Vista Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50