Direct answer
Yes, you can delete temporary files in Windows 11 safely. The safest way is Settings, then System, then Storage, then Temporary files. Tick the categories you want to remove and select Remove files. Windows only lists files it considers safe to delete, and it shows how much space you will get back first.
What Are Temporary Files in Windows 11?
Temporary files are short lived files that Windows and your apps create while they work. Installers unpack files into a temp folder, apps store working data there while they run, and Windows Update keeps downloaded update files there until it finishes installing them.
Most apps delete their own temp files when they close. The problem starts when an app crashes, an install is interrupted, or an update fails. The leftovers stay behind, and months of them can take up several gigabytes.
Is It Safe to Delete Temporary Files?
Yes, with one condition. Delete only the categories Windows offers in the Temporary files screen, and read each one before you tick it. Windows will not offer your documents or photos for deletion. But the list does include two items that need care: the Downloads folder and Previous Windows installation(s). Close your apps first, because a file in use cannot be deleted.
What Is Safe to Delete?
Use this table before you tick anything.
| Category | What it holds | Safe to delete? |
|---|---|---|
| Temporary files | Leftover app and installer files | Yes |
| Windows Update Cleanup | Old update files Windows no longer needs | Yes, but you cannot uninstall some older updates afterwards |
| Delivery Optimisation Files | Update files shared with other PCs | Yes |
| Thumbnails | Small preview images for photos and videos | Yes, Windows rebuilds them when needed |
| Recycle Bin | Files you already deleted | Only if you have checked what is inside |
| Downloads | Files you downloaded and saved | Only if you have moved the ones you want to keep |
| Previous Windows installation(s) | The old version of Windows in the Windows.old folder | Only if you are sure you will not roll back |
The two risky rows are Downloads and Previous Windows installation(s). Deleting Downloads removes files permanently, and deleting a previous Windows installation removes your rollback option for 10 days after an upgrade. If you upgraded recently, leave that box unticked.
Method 1: Delete Temporary Files in Settings (Safest)
This is the method Microsoft recommends, and the one to use first. Windows shows the size of each category before you delete anything, so there is no guesswork.
Press Windows + I to open Settings, then select System, then Storage, then Temporary files. Tick the categories you want to remove. Temporary files, Windows Update Cleanup, Delivery Optimisation Files and Thumbnails are safe choices. Leave Downloads and Previous Windows installation(s) unticked unless you are sure. Select Remove files, then confirm. Windows deletes the selected files and shows how much space it freed. If a file is in use, Windows skips it and finishes the rest.
Method 2: Set Up Storage Sense So Windows Cleans Up for You
Storage Sense is the part most guides rush past, and it is the most useful feature here. It is the built in automatic cleaner in Windows 11. Once you set it up, you never need to remember this job again.
Storage Sense is off by default. Here is how to set it up, with the settings we recommend for a typical UK home PC.
- Open Settings, then System, then Storage.
- Turn on Storage Sense.
- Select Storage Sense to open its settings.
- Set Run Storage Sense to Every month, Recycle Bin files to 30 days, and Downloads files to 60 days. If you use Downloads as a working folder, set that one to Never instead. Leave the option to delete previous versions of Windows unticked, so you keep your rollback option.
These settings are a good balance. Storage Sense will clear temp files, old Recycle Bin contents and stale downloads on its own, and it will never delete a file you opened recently.
Storage Sense does not clean the Downloads folder or cloud files unless you switch those options on.
Method 3: Delete the Temp Folder Manually
If you want full control, delete the files in your user Temp folder by hand. Close the apps you are not using first, then press Windows + R, type %temp% and press Enter. Press Ctrl + A to select everything, then press Delete. Files go to the Recycle Bin, so you can recover them if you made a mistake. If Windows says a file is in use, tick Do this for all current items and select Skip.
Do not delete the Temp folder itself, only the files inside it. Leave the system Temp folder at C:\Windows\Temp alone. It needs administrator rights, and deleting the wrong file there can break an update.
Method 4: Disk Cleanup for System Files
Disk Cleanup is the classic Windows tool, and it still ships with Windows 11. Use it when Settings does not free as much space as you expected. Press Windows + S, type Disk Cleanup, and open it. Select your system drive, usually C:, tick Temporary Files and Temporary Setup Files, then select OK and Delete Files. To clean system files too, select Clean up system files first. This needs administrator approval.
What NOT to Delete
- Your Downloads folder, unless you have moved the files you want to keep.
- The Windows.old folder within 10 days of an upgrade, unless you are sure you will not roll back.
- The C:\Windows folder and the C:\Program Files folder.
- Registry cleaners and third party “PC cleaner” apps. The built in Windows tools do this job safely.
What to Do When a File Will Not Delete
Close the app that is using the file, then try again. If that fails, restart your PC. A restart releases files that a crashed app left locked.
If Storage Sense is not deleting anything, check that it is switched on. It is off by default, and it only runs while you are signed in. Some users have reported that the Storage screen shows an incorrect temporary files size after the Windows 11 24H2 update, sometimes around 8.63 GB, which Microsoft has acknowledged as a reporting fault.
How Often Should You Delete Temporary Files?
Once a month is plenty for most people, or every two weeks if you have a small drive. The simplest answer is to set up Storage Sense once, as in Method 2, and let it handle the schedule.
Cleaning temporary files will not make your PC faster in normal use. It frees space, and it can fix odd behaviour caused by stale caches. For more laptop maintenance, see how to check laptop battery health in Windows 11, and for the physical side of PC care, see how to clean your gaming PC safely.
FAQs
Is it safe to delete temporary files in Windows 11?
Yes. Windows only offers files it considers safe to delete. Leave Downloads and Previous Windows installation(s) unticked unless you are sure, and close your apps first.
Will deleting temporary files delete my personal files?
No. Temporary files are scratch data created by Windows and apps. Your documents, photos, videos and settings are stored elsewhere and are not touched by these methods.
How do I delete temporary files automatically?
Turn on Storage Sense in Settings, then System, then Storage. Set it to run every month, and set the Recycle Bin and Downloads rules to 30 and 60 days.
Why can I not delete some temporary files?
The file is in use by an app that is still running. Close the app and try again, or restart your PC. Windows skips files that are in use, and that is normal behaviour.
Conclusion
Deleting temporary files in Windows 11 is safe, quick and worth doing once a month. Start with Settings, then System, then Storage, then Temporary files. Tick the safe categories, leave Downloads and Previous Windows installation(s) alone unless you are sure, and confirm. Then set up Storage Sense so the job happens on its own.