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.
- Your temp folder. Press Windows logo key + R, type %TEMP%, and press Enter. The folder that opens is usually C:\Users\<you>\AppData\Local\Temp. Installers and app scratch files land here.
- Windows temp. C:\Windows\Temp is the system-wide folder. You may need an administrator account to empty it, and some files will be locked.
- Update and delivery caches. Windows Update and Delivery Optimization keep their own files. They show up as named categories in Disk Cleanup and on the Temporary files page, which is the right place to remove them.
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.
How to delete them
Start with the Windows list so you can see the size of each category before anything is removed.
Windows 11
- Select Start, Settings, System, Storage, Temporary files.
- Wait for the sizes to fill in. Uncheck Downloads and Recycle Bin unless you have looked inside them.
- Leave Temporary files, Thumbnails, and Delivery Optimization Files checked if the descriptions match what you want.
- Select Remove files. When it finishes, the page totals should drop.
Windows 10
- Select Start, type Disk Cleanup, and open it for the C: drive.
- Check Temporary files and the other categories you recognize. Use Clean up system files only when you also want Windows Update Cleanup.
- 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
| Place | What it really is | Delete? |
|---|---|---|
| Downloads | Files you saved from the internet. | Only the ones you have opened and do not want. |
| Recycle Bin | Files you already chose to delete. | Empty it when you are sure. |
| Prefetch | A Windows boot and app cache under C:\Windows\Prefetch. | Leave it. Windows manages it, and deleting it is not a temp cleanup. |
| Thumbnails | Picture 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.
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.
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.
- On Windows 11, go to Settings, System, Troubleshoot, Other troubleshooters. Next to Windows Store Apps, select Run.
- Press Windows logo key + R, type wsreset.exe, and select OK. A command window opens, then the Store opens.
- Run the Windows Update troubleshooter from the same Other troubleshooters page.
- 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
- Microsoft Support: Free up drive space in Windows, including the full-Temp-folder case and wsreset.exe.