Top 3 Ways to Fix Windows 10 Temporary Files Not Deleting

Windows operating system and software installed on it often create Temporary files (or Temp files, for short) on your computer. These files come with their benefits, and tend to have negative effects on your PC in the long run. Accumulated temporary files can eat up storage space on your computer’s hard disk as they sometimes run into a couple of gigabytes. Deleting them can free up storage space and consequently speed up your PC’s performance.

Fix windows 10 temporary files not deleting featured image

Removing temporary files is as easy as navigating to Settings > System > Storage > Temporarily Files. Doing this will scan your PC for redundant temporary files that can be deleted to reclaim storage space on your device. Despite how straightforward this looks, some users report that temporary files remain on their PC after being deleted via the Windows Settings menu.

Fix windows 10 temporary files not deleting image

You can fix this issue by updating your PC’s operating system. It’s quite possible that the bug might be related to that OS build’s version. If temporary files still don’t get deleted through the Settings menu, refer to the methods below to remove them from your computer.

1. Use Disk Cleanup

Disk Cleanup is a disk maintenance utility built into the Windows operating system to help users clear unwanted system files from their PC’s hard drive. Of course, it won’t appear on the desktop like other programs. If the Windows Settings menu refuses to delete temporary files, you can use the Windows Disk Cleanup utility; it analyzes and deletes temporary files just as better.

Step 1: Launch the Windows Run box (Windows key + R), type control into the Open dialog box, and tap OK.

Fix windows 10 temporary files not deleting 05

That will launch the Control Panel.

Step 2: Tap ‘System and Security.’

Fix windows 10 temporary files not deleting 06

Step 3: Select Administrative Tools.

Fix windows 10 temporary files not deleting 07

That will launch a new Administrative Tools window.

Step 4: Double-click Disk Cleanup.

Fix windows 10 temporary files not deleting 08

Step 5: On the Disk Cleanup window, tap the ‘Clean up system files.’

Fix windows 10 temporary files not deleting 09

The Disk Cleanup utility will proceed to analyze how much space you can free up on your computer.

Fix windows 10 temporary files not deleting 10

Step 6: Check the files you want to delete in the ‘Files to delete’ section and tap OK to proceed.

Fix windows 10 temporary files not deleting 11

Step 7: Tap Delete Files on the confirmation prompt to proceed.

Fix windows 10 temporary files not deleting 12

2. Use Command Prompt

You can also use the Command Prompt to delete temporary files on your PC if the Windows Settings menu doesn’t do it. It’s even somewhat easier and less complicated than using the Windows Disk Cleanup.

Step 1: Launch the Windows Quick Access Menu using the Windows logo + X keyboard shortcut and select ‘Command Prompt (Admin).’

Fix windows 10 temporary files not deleting 13

Step 2: Paste the command below into the Command Prompt console and hit the Enter key on your keyboard.

del /q /f /s %temp%\* && del /s /q C:\Windows\temp\*
Fix windows 10 temporary files not deleting 14

The above is a combined command line that deletes both temporary users’ files and temporary system files on your Windows computer. Here’s a breakdown of the command line.

del /q /f /s %temp%\* —— this deletes temporary users files.
del /s /q C:\Windows\temp\* —— this deletes temporary system files.

Note: We recommend that you close all active apps and reboot your PC before running this command.

3. Use Third-Party Apps

Fix windows 10 temporary files not deleting image 02

Another way to easily remove temporary files that aren’t deleting from the Windows Settings menu is to use third-party storage optimization software/tools. Some of these tools are free and will effectively wipe out temporary files from your Windows computer at the click of a button.

CCleaner is one app that we’ve tried, tested and found to be effective. CCleaner is an all-round system optimizer and privacy tool that helps Windows users uninstall apps, remove unwanted files, fix system errors, and lot more.

Here’s how you to use CCleaner to remove temporary files from your Windows computer.

Step 1: Launch CCleaner and navigate to the Custom Clean section.

Fix windows 10 temporary files not deleting

Step 2: Check the Temporary Files you want to delete and uncheck all other options in the app’s left-hand menu.

Fix windows 10 temporary files not deleting 01

Step 3: Tap the Analyze button.

Fix windows 10 temporary files not deleting 02

That will scan your PC for temporary files.

Note: We recommend that you close other apps before this process.

Afterward, you will be shown a preview of the temporary files that were detected.

Fix windows 10 temporary files not deleting 03

Step 4: Tap the Run Cleaner button to delete the temporary files from your computer.

Fix windows 10 temporary files not deleting 04

Be Meticulous About It

Although the methods mentioned above will delete temporary files on your computer when the Windows Settings menu fails, you recommend that you use methods #1 and #3 (i.e., Disk Cleanup and third-party apps). That is because you can select/choose the temporary files you want to delete. With method #2 (the Command Prompt option), there’s no freedom to choose files to be deleted as all temporary files will be erased from your PC after running the command line. Let us know which method(s) worked the magic for your computer or any help.

Next up: Read the post linked below to learn how to fix Windows 10 PIN not working issue. No need to reset or format your computer until you tried these methods.

Was this helpful?

Thanks for your feedback!

Last updated on 07 February, 2022

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.