Delete All temporary files from Temp folder with in-built Windows Disk Cleanup Tool

Disk Cleanup is necessary to clean unwanted junk and temporary files that eat up much space in the system hard disk ultimately causing the computer to slow down. Many computer issues arise due to scarcity of disk space, so frequent disk cleaning is necessary to remove all junk files from the system. When we install any software, various entries and files are created in the system that doesn’t get deleted even after removal of the files. These obsolete junk files eat up much disk space unnecessarily causing PC to slow down. Here is the tutorial how you can use Windows inbuilt Disk Cleanup Tool to delete all temporary files including the ones that are created in the last 7 days.

Delete temporary files temp folder Windows Disk Cleanup ToolYou must have noticed that when you try to remove or delete the temp folder, there are certain files that remain unaffected in the temp folder. The reason behind this is that the default Windows does not allow you to delete the temporary (.tmp) files in the %WinDir%\Temp folder and in other folders that are created or accessed in the last 7 days.

Those files that cannot be deleted either they are being downloaded or currently in use or the files are be related to some application that are still open. So Windows doesn’t take the risk of deleting any files that comes under the options discussed or are recently created or accessed. However, you can set windows inbuilt Disk cleanup set up to clean all the files from the temporary folder. Follow the steps given below to do so.

  • Press Windows key + R to open Run dialog and type in regedit and hit enter
  • You can now get Registry Editor on screen. Now navigate to the following key HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows\ CurrentVersion\ Explorer\ VolumeCaches\ Temporary Files
  • In the right hand pane, find LastAccess and double-click on it

temp regedit

  • A new window Edit DWORD Value pops out, there change the Value Data setting from 7 to 0 and click OK. While assigning 0 to it will set Disk Cleanup Tool to delete all the files. If you set it to 1, then it will not delete the last 1 days temp files.

Once you are done with the all the steps you can now restart Windows to allow the changes to take effect.

Upon following the tutorial described above you can now easily clean up your system hard disk and free some space using Windows inbuilt Disk Cleanup Tool.


No comments yet.

Leave a Comment