Windows is a bit like a kitchen that never stops cooking: even when nobody is watching, something is always simmering. Temp files pile up from browser caches, app installers, and Windows updates. According to Microsoft’s own storage guidance, the Temporary files category in Windows 11 can quietly grow into tens of gigabytes on a heavily used machine, and much of it is safe to remove. The good news is that Windows 11 ships with several built-in tools that handle the job, from a one-click “Free up space now” button to scheduled automatic cleanup. The less good news is that these tools are scattered across different menus, and each one behaves a little differently. This guide walks through every practical method, in order from easiest to most thorough, and flags the mistakes that cause people to lose files or think cleanup “didn’t work.”
Why Windows 11 Collects So Many Temporary Files
Every program that runs on Windows needs scratch space. Browsers cache images so pages load faster. Installers unpack their contents to a temp folder before copying anything. Windows Update downloads packages, applies them, and leaves the leftovers behind. Even thumbnails of your photos get cached so File Explorer feels snappy.
Most of these files are designed to be disposable, and Windows is supposed to clean them up when the associated task finishes. In practice, that cleanup is unreliable. A crash, a forced shutdown, or a program that never exits properly can strand gigabytes of orphaned data. Over months, a laptop that started with 200 GB free can end up with 20 GB or more locked inside folders you never open. That is why Microsoft builds both manual and automatic cleanup into the operating system rather than leaving it entirely to third-party utilities.
Method 1: Storage Sense, the Set-and-Forget Option

Storage Sense is the most underused feature in Windows 11. It is a built-in scheduler that deletes temporary files automatically, and once you switch it on you rarely need to think about it again.
To enable it, open Settings > System > Storage and toggle Storage Sense on. From there, click into its configuration page. You can tell Windows to run cleanup every day, every week, or every month, and to trigger a run automatically when disk space runs low. The configuration screen also lets you decide how long deleted files sit in the Recycle Bin before being purged, and whether your Downloads folder should be swept on a schedule.
That last option deserves a warning. In several Windows 11 builds, the Downloads folder is included in automatic cleanup by default, which means files you downloaded and forgot about can vanish. Check that setting before you walk away. If you keep important documents in Downloads, set it to “Never.”
Storage Sense is the right choice for most people because it solves the problem at the source. Instead of remembering to clean up, you let Windows do it on a rhythm. The trade-off is control: you cannot see exactly which files will go before they go.
Method 2: The Manual Temporary Files Cleanup
When you want to see what is about to be deleted, the manual route is better. Open Settings > System > Storage and click Temporary files. Windows scans for a moment and then presents a checklist of categories with the size of each one.
| Category | What it contains | Safe to delete? |
|---|---|---|
| Temporary files | App scratch data, orphaned installer files | Yes |
| Recycle Bin | Files you deleted but haven’t purged | Yes, if you’ve checked contents |
| Downloads | Everything in your Downloads folder | Only if you’ve reviewed it |
| Delivery Optimization Files | Update chunks shared between PCs | Yes, they regenerate |
| Thumbnails | Cached preview images | Yes, they rebuild |
| Windows Update Cleanup | Superseded update packages | Yes, but you can’t roll back updates afterward |
| Previous Windows installation(s) | The old OS from an upgrade | Yes, after you confirm everything works |
Tick the boxes you want and click Remove files. The scan takes a few seconds and the deletion usually finishes within a minute, though the Windows Update category can take much longer on a machine that has skipped several patches.
A common mistake here is selecting everything without reading. Clearing Previous Windows installation(s) removes your ability to roll back to the prior version of Windows, and clearing Windows Update Cleanup removes the ability to uninstall the most recent update. Both are usually fine once a system has been stable for a few weeks, but they are not decisions to make blind. (Undo shortcut key for windows and mac)
Method 3: Disk Cleanup, the Legacy Tool That Still Works
Disk Cleanup (cleanmgr.exe) has been part of Windows since the 1990s, and it is still present in Windows 11. Microsoft has been steering users toward the Storage settings page instead, and the tool feels dated, but it offers one thing the modern interface sometimes hides: the Clean up system files button, which elevates the tool and exposes categories like Windows Update cleanup and old Windows installations.
To use it, type “Disk Cleanup” into the Start menu search and run it. Select your system drive, then click Clean up system files to show the deeper categories. The list looks similar to the Storage page but sometimes shows items the newer interface does not.
There is also a command-line trick worth knowing. Running `cleanmgr /sageset:1` lets you pre-select which categories Disk Cleanup should handle, and `cleanmgr /sagerun:1` then executes that saved selection silently. It is useful for anyone who cleans the same machine repeatedly or wants to script cleanup on a schedule. Just be aware that the exact behavior has shifted between Windows versions, so verify the syntax against Microsoft’s documentation before relying on it in an automated task.
Method 4: Clearing Temp Folders Directly
Sometimes the built-in tools skip files because they are locked by a running process. If you want to go deeper, you can open the temp folders yourself.
Press Win + R, type `%temp%`, and press Enter. This opens your user-level temp folder, typically located at `%LOCALAPPDATA%Temp`. Select everything with Ctrl + A and delete. Windows will skip files currently in use and show a dialog listing them; that is expected behavior, not an error. You can tick “Do this for all current items” and click Skip to move past them.
For system-level temp files, run `C:WindowsTemp` in the same way. This folder requires administrator rights to fully clear, so you may need to confirm an elevation prompt.
A word of caution: do not delete the temp folders themselves, only their contents. And close your browser and office applications first, because they hold open handles on cache files and the deletion will simply fail for those. If you are the kind of person who likes keyboard efficiency, our guide to Windows keyboard shortcuts everyone should know covers the Run dialog and selection shortcuts that make this faster.
Method 5: The One-Click “Free Up Space Now” Button
If you want the simplest possible action, Windows 11 includes a Free up space now button on the Storage settings page. It runs an on-demand cleanup that combines temporary files, Recycle Bin contents, and update leftovers in a single pass, using whatever categories you have previously configured. It is the closest thing to a “clean my PC” button that Microsoft ships, and it is genuinely useful before a large download or a Windows feature update, when you need a few extra gigabytes in a hurry.
The button does not override your settings, so if you have excluded Downloads from cleanup, it will leave Downloads alone. That makes it safe to press without reviewing anything first, which is more than can be said for the manual checklist.
What Actually Works, and What Doesn’t
After years of these tools coexisting, some practical truths have emerged.
The scheduled approach beats the manual one. People who enable Storage Sense almost never run out of disk space from temp files. People who clean manually do it once, feel productive, and then forget for six months. Automation wins.
Third-party “cleaner” apps rarely add value. Windows 11’s built-in tools cover the same categories, and some third-party cleaners aggressively delete registry entries or cached data that programs actually need. If you are worried about malware disguising itself as a cleanup tool, our guide on how to check for viruses on a Windows PC explains what to look for before installing anything.
Temp files are not the same as junk everywhere. Browser caches, for instance, exist to make browsing fast. Clearing them regularly means every site loads slower for a while. It is fine occasionally, but it is not a habit worth automating.
Locked files are normal. Any cleanup that reports “some files could not be deleted” is working correctly. Those files are in use by running processes and will be removed on a later pass once the process exits.
Disk space reporting can lag. After a large cleanup, File Explorer may still show the old free-space figure until you refresh. Press F5 in the window, or check Settings > Storage again, before assuming the cleanup failed.
How to Verify You Actually Freed Space
Open Settings > System > Storage and look at the bar at the top. It breaks usage into apps, documents, pictures, and other categories. Compare the total before and after a cleanup. If the number barely moved, the culprit is probably not temp files at all but a large application, a games library, or a folder of videos you forgot about. The Storage page lets you click into each category and see which apps or folders are consuming the most, which is often more revealing than the cleanup itself.
For a deeper look, the Storage page also offers a “Cleanup recommendations” section that flags large or unused files, cloud-backed content not downloaded locally, and items in the Recycle Bin. It is a useful complement to the Temporary files checklist and often surfaces space you did not know you had.
Mistakes That Cause People to Lose Files
The single most common disaster is clearing the Downloads folder without reviewing it. Windows treats Downloads as a cleanup candidate in some configurations, and users who tick every box in the Temporary files list can wipe out saved installers, PDFs, and work documents in one click. If you keep anything important there, move it to Documents first.
The second mistake is deleting the temp folder itself rather than its contents. Windows will usually recreate it, but some applications expect the path to exist and behave oddly until it does.
The third is running cleanup during a Windows Update. Files associated with the update in progress can be locked or, worse, deleted mid-operation. Let updates finish before you clean.
Finally, avoid the temptation to delete `C:WindowsTemp` contents while signed in as a standard user without elevation. The operation will partially fail and leave a confusing mix of deleted and retained files.
Frequently Asked Questions
Is it safe to delete all temporary files in Windows 11?
Yes, for the categories Windows itself labels as temporary. The built-in Temporary files checklist is designed to be safe, and Windows skips anything currently in use. The exceptions are the Downloads folder and the previous Windows installation, which you should review before removing. (Temporary file)
How often should I clean temporary files?
If Storage Sense is enabled, you do not need to clean manually at all; Windows handles it on your chosen schedule, typically weekly. If you prefer manual control, a monthly pass through Settings > System > Storage > Temporary files is more than enough for most users.
Does deleting temporary files speed up my PC?
Rarely in a noticeable way. Temp files consume disk space, not processor time, so removing them frees storage but does not make Windows faster. A nearly full drive can slow things down, so cleanup helps indirectly when space is tight, but it is not a performance tune-up.
Where are temporary files stored in Windows 11?
User temp files live in `%LOCALAPPDATA%Temp`, which you can open by typing `%temp%` into the Run dialog. System-wide temp files sit in `C:WindowsTemp`. Both folders are safe to empty, though files in use will be skipped.
What is the difference between Storage Sense and Disk Cleanup?
Storage Sense is the modern, automatic tool that runs on a schedule and lives in Settings. Disk Cleanup is the older manual tool that still exposes some system-file categories and supports command-line automation. Both delete the same kinds of data; Storage Sense is better for routine maintenance, while Disk Cleanup is useful for occasional deep cleans. (File Systems)
Can I delete temporary files without administrator rights?
Yes, for your own user temp folder and the Storage settings page. Clearing `C:WindowsTemp` and running Windows Update cleanup require administrator rights, and the system will prompt for elevation when needed.
Conclusion
Deleting temporary files on Windows 11 is not complicated, but it rewards a little strategy. Turn on Storage Sense first and set a weekly schedule, excluding Downloads if you store anything important there. Use the Temporary files checklist when you want to see exactly what is going, and reach for Disk Cleanup only when you need the deeper system categories. The `%temp%` folder remains a reliable manual fallback for stubborn leftovers, and the Free up space now button is there for emergencies before a big download.
The bigger lesson is that temp files are a symptom, not the disease. If your drive fills up repeatedly, the real culprit is usually a handful of large applications or an overflowing media folder, not the scratch data Windows quietly manages. Clean up once, automate the rest, and check the Storage page every few months to see where the space actually went. That habit will keep your machine healthy far longer than any single cleanup ever could.


