How To Fix Windows 10 Temporary Files Not Deleting?

Windows operating system is designed to create temporary files to function smoothly. In addition to this, many application also creates temp files for use. However, the issue arises when these files are not deleted and just left in the system. This converts them into junk and obsolete files which must be deleted. Sometimes these files are overwritten many times, creating corrupt files which may damage the system and hamper the performance of the PC.

On the other hand, accumulation of temporary files also results in less storage space and increases the time taken to process as the CPU has to scan through more files and thus reducing speed. The perfect solution to these problems is to get rid of the junk, obsolete and temporary files. But the question is, do you want to do it manually or use software to clean all the trash with a few clicks? Also, what do you do if Windows 10 temporary files are not deleting?

How To Fix Windows 10 Temporary Files Not Deleting?

Method 1: Disk Cleanup In Windows 10

Disk Cleanup is an in-built tool that was inculcated by Microsoft since the very beginning of the Windows operating system. The main goal of this maintenance utility is to clean the temp, junk, obsolete and all the unwanted files from the hard drive and save storage space. The tool is not available upfront as a shortcut or desktop icon and needs to be pulled from deep within the Windows Control Panel. Here are the steps to clean temporary files out of your system:

Step 1: Open RUN dialog box by pressing Windows + R on your keyboard.

Step 2: Type Control Panel in the box and press OK button.

Step 3:  From the options in the Control Panel window, locate and select ‘System and Security.’

System and Security in windows, windows 10 temporary files

Step 4: Now, click on Administrative tools and a new window will open.

Administrative tools in new window

Step 5: Make a double click on the option Disk Cleanup and when it opens click on ‘Clean up system files.”

Clean up system files

Step 6: The disk clean up takes some time to analyze all your files and then display them categorically.  Place a check next to files you want to delete and press the OK button.

disk cleanup in windows

Step 7: Click on Delete Files when the prompt appears to confirm your choice and to proceed with the cleanup.

Also Read: How to delete Pagefile.sys which a temp file and takes GBs of space?

Method 2: Delete The Temp Files Using Command Prompt

It is a fact that if you cannot delete a file in Windows operating system by the normal click and delete method, then you can always try the Command Prompt. Most of the errors that occur stating the file is in use or cannot delete due to system error can be resolved by using command prompt.

Step 1: Type Command Prompt in the search box on the taskbar and from the result, hover your mouse over the Command Prompt app. Then choose Run As Administrator to run the Command Prompt in an elevated mode,

Step 2: Type the following command in the Command Prompt window and press Enter.

del /q /f /s %temp%\* && del /s /q C:\Windows\temp\*

Command Prompt window for fix temporary files not deleting

Step 3: Restart your computer, and you will feel the difference between a clean and smooth functioning system.

Method 3: Delete The Temp Files Using The Run Box

If you are not comfortable using the Command Prompt, then you can use the RUN box and manually delete all the temp files. Here are the steps to accomplish this:

Step 1: Press Windows + R to open the Run dialog box.

Step 2: Type “TEMP" in the text box within the Run box. This will open a folder on your computer.

Step 3: Press CTRL + A on your keyboard to select all the files and in the folder and then hold the SHIFT key and hit the DELETE key. This will permanently delete all the temp files in the folder.

Step 4: Open the RUN dialog box again, and this type "%TEMP%” and press OK.

open run dialog box

Step 5: Repeat Step 3 on this folder and delete all the files and folders in this folder as well.

This clears all the temporary files from your system.

Note: The TEMP stores temporary system files and the %TEMP% stores the temporary files of the user.

Method 4: Use A System Optimizer App

The final way to resolve the Windows 10 temporary files not deleting is to use an app that can optimize your system entirely and there isn’t better than Advanced System Optimizer (ASO). I have been using ASO for about 4 years now and seem to have forgotten my computer woes at all. It not only cleans my temp and junk files but does a lot more that. Here are a few features that would help you understand better:

  • Cleans the System – Advanced System Optimizer aids in cleaning temporary, junk and obsolete files from the computer and guarantees a faster PC and freed up storage.
  • Sustains Security and Privacy – ASO assists in safeguarding the PC by protecting against the virus, spyware, malware and other potentially harmful files. It also preserves privacy on the system by removing surfing history, cache and cookies so that your browsing activities cannot be tracked.
  • Windows Optimization– This program optimizes various aspects of the computer like Game optimization that lets you have a memorable experience every time you play and Memory optimization which empties up your RAM
  • Drivers Updates – ASO updates your drivers regularly.
  • Backup & Recovery. It also helps you to take a backup, and store in a safe place to be restored in cases of mishaps like hard drive crashes. Advanced System Optimizer takes a backup and can restore your files as they were.

Advanced System Optimizer

The Final Word On How To Fix Windows 10 Temporary Files Not Deleting?

That concludes the four ways to fix Windows 10 temporary files not deleting. I have been using the Advanced System Optimizer from quite a few years now, but before I found about this remarkable software, I used the RUN box method. I could also see the files that were being deleted as I used to scroll the folder first and then delete the files, keeping what I felt were important. The first two methods are great ways to clean your computer but do not provide an insight into what is being deleted. Do let me know which method you chose in the comments section below.

Follow us on social media – Facebook, Twitter, LinkedIn, and YouTube. For any queries or suggestions, please let us know in the comments section below. We would love to get back to you with a solution. We post regularly on the tips and tricks along with solutions to common issues related to technology.


  • theo

    8 months ago Reply
  • Khadijah Nayeem
    BRO A LIFE SAVER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    7 months ago Reply
    • Mridula Nimawat
      Thank you

      7 months ago Reply

Leave a Reply