Home / Temporary Files

Where Windows Keeps Temporary Files and What You Can Delete

You can delete temporary files that programs are no longer using. The safe way is Settings, System, Storage, Temporary files, or Disk Cleanup, not a blind selection of every file in C:\Windows. Your documents are not in the temp folders. Downloads, the Recycle Bin, and Prefetch are not the same place, even though cleanup screens sometimes list them nearby.

Where temporary files are stored

Windows keeps more than one temp location. Deleting one of them leaves the others full.

On Windows 11, Storage, Temporary files is the list that already knows these locations. On Windows 10 the same idea is in Storage settings, and Disk Cleanup still shows Temporary files as a checkbox.

Diagram of three different locations: the user Temp folder, C:\Windows\Temp, and a note that Downloads, the Recycle Bin, and Prefetch are not the same thing.
Clear the temp folder you mean. Downloads is a folder of files you saved, even when a cleanup screen offers it.

How to delete them

Start with the Windows list so you can see the size of each category before anything is removed.

Windows 11

  1. Select Start, Settings, System, Storage, Temporary files.
  2. Wait for the sizes to fill in. Uncheck Downloads and Recycle Bin unless you have looked inside them.
  3. Leave Temporary files, Thumbnails, and Delivery Optimization Files checked if the descriptions match what you want.
  4. Select Remove files. When it finishes, the page totals should drop.

Windows 10

  1. Select Start, type Disk Cleanup, and open it for the C: drive.
  2. Check Temporary files and the other categories you recognize. Use Clean up system files only when you also want Windows Update Cleanup.
  3. Select OK, then Delete files.

Storage Sense can repeat the temporary-file part later. The schedule and the Downloads trap are on the Storage Sense page. Do not enable Downloads cleanup just because you are on the Temporary files screen.

When a manual delete is reasonable

Use %TEMP% when the Storage page shows almost nothing and a program has clearly left a huge installer behind. Close that program first. Select the files, press Delete, and skip anything Windows says is in use. Those locked files are why a manual delete often frees less than the folder’s size. They are also why “Disk Cleanup is not deleting temp files” usually means a running app still holds them, not that the tool is broken.

Expect some files to return the next time you open the app that created them. A browser cache, a game shader cache, and an update download are temporary only until the program wants them again.

Folders people mistake for temp

PlaceWhat it really isDelete?
DownloadsFiles you saved from the internet.Only the ones you have opened and do not want.
Recycle BinFiles you already chose to delete.Empty it when you are sure.
PrefetchA Windows boot and app cache under C:\Windows\Prefetch.Leave it. Windows manages it, and deleting it is not a temp cleanup.
ThumbnailsPicture previews.Yes, through Disk Cleanup. Windows rebuilds them.

What not to delete

Do not delete C:\Windows\WinSxS, C:\Windows\Installer, or C:\Windows\System32 because a temp guide mentioned Windows folders. Those are not temp. If Storage shows a large “Previous Windows installation,” that is Windows.old, and removing it is permanent. The warning is the same one Microsoft prints for Disk Cleanup: you lose the rollback.

Diagram listing System32, WinSxS, Installer, and System Volume Information as folders not to delete manually.
Temporary-file cleanup never requires opening these folders.

How to verify the result

Read free space on C: in This PC, then reopen Temporary files and see which lines went to zero. If %TEMP% still looks large, sort it by size. One locked installer explains a stubborn folder better than a second identical cleanup. The broader measurement steps are in how to check storage.

Example diagram of free space on Local Disk C after a cleanup, with a capacity bar.
A real result is a larger free-space number on the same drive, not a window that simply said it finished.

If the Temp folder fills up again immediately

Microsoft documents a specific case: after Cleanup recommendations, a low-disk warning returns because the Temp folder is filling with Microsoft Store package files. The published fix is to reset the Store, clear the Store cache, and run the Windows Update troubleshooter.

  1. On Windows 11, go to Settings, System, Troubleshoot, Other troubleshooters. Next to Windows Store Apps, select Run.
  2. Press Windows logo key + R, type wsreset.exe, and select OK. A command window opens, then the Store opens.
  3. Run the Windows Update troubleshooter from the same Other troubleshooters page.
  4. Restart the PC and check free space.

On Windows 10 those troubleshooters are under Settings, Update & Security, Troubleshoot. If temp files are not the thing growing, the cause is a normal folder, which is the problem described in what is taking up space.

How to keep temp folders smaller

Let Storage Sense remove unused temporary files, close installer windows when they finish, and avoid “PC cleaner” apps that promise to delete temp files you have not seen. A cleaner that asks for payment to remove prefetch and registry entries is not doing this job.

Questions from the search

Can I delete temporary files?

Yes, the unused ones, through Temporary files or Disk Cleanup. Skip files Windows says are in use.

Where are temporary files stored in Windows 11?

The user folder is %TEMP%, typically under AppData\Local\Temp. Windows also uses C:\Windows\Temp and update caches that appear on the Temporary files page.

Should I delete temporary files in Disk Cleanup?

The Temporary files checkbox is a normal choice. Read the neighboring boxes. Recycle Bin and Previous Windows installation are separate decisions.

Do temporary files include my downloads?

No. Downloads is a different folder. Some cleanup screens offer it as an extra checkbox. Leave that box clear until you have looked inside Downloads.

Sources checked for this page