How to Delete Windows Temporary Files and Reclaim Your Storage
We’ve all been there: you’re midway through a massive game download or a critical project when the dreaded "Low Disk Space" notification slides into the corner of your screen. It always happens at the worst possible moment. Most of that bloat isn't actually your photos or documents—it’s "digital exhaust" left behind by apps that didn't clean up after themselves.
Whether you're on Windows 10 or the latest Windows 11 build in 2026, these files can easily swell from a few megabytes to 50GB+ of wasted space. Reclaiming that room is the fastest way to snap your system back to life without buying a new SSD. Before you dive in, save your work and close your browser; Windows can't delete files that are currently being "locked" by active programs.
Using the Windows Settings Menu for Quick Results
The modern Settings interface is the best place to start because it actually shows you what you're about to kill.
Navigating the Storage Menu
Hit the Start menu and jump into Settings (the gear icon). Click on System, then Storage. You’ll likely see a pulsing bar while Windows calculates usage on your Local Disk (C:).
Expert Note: If this calculation seems to hang or take forever, don't panic. Windows is indexing millions of tiny files. Give it a minute; if it stays stuck, your file system might need a quick reboot to refresh its index.
Once the list populates, click on Temporary files.
Selecting Your Targets
Windows will present a checklist of junk. Most are safe to nukes, like the DirectX Shader Cache or Windows Error Reporting files.
The "Delivery Optimization Files" Warning:
You might see a massive entry for "Delivery Optimization Files." These are bits of Windows Updates that your PC shares with other computers on your local network. While they help save bandwidth for other devices in your house, they can become gargantuan. If you aren't worried about your internet data cap, check this box to reclaim significant space.
The Downloads Folder Trap:
Be careful here. Windows includes your Downloads folder in this list. Unlike the other categories, this contains files you manually saved. If you have unorganized installers or PDFs in there, uncheck this box before clicking Remove files.
The Legacy "Disk Cleanup" Double-Clean
While Microsoft is slowly moving everything to the Settings app, the classic Disk Cleanup utility (cleanmgr.exe) is still the gold standard for a deeper scrub. It finds system-level remnants that the modern UI sometimes glosses over.
-
Press the Windows Key + S, type "Disk Cleanup," and hit Enter.
-
Select your C: drive and click OK.
-
The Pro Move: Once the window opens, don't just click OK. Click the button labeled Clean up system files. This restarts the tool with admin privileges, allowing it to find Windows Update leftovers and the "Windows.old" folder.
Should You Delete Windows.old?
If you see "Previous Windows installation(s)" taking up 20GB or 30GB, that’s your safety net. It allows you to "roll back" to a previous version of Windows if a new update breaks your drivers. If your PC has been running stable for more than a week, it’s usually safe to kill this and reclaim the space.
Automating the Process with Storage Sense
In 2026, there’s no reason to be cleaning your drive manually every month. Windows includes Storage Sense, which acts like a digital janitor that works while you sleep.
Go to Settings > System > Storage and toggle Storage Sense to "On." Click the arrow next to the toggle to configure it. Set it to run "When disk space is low" and tell it to delete files in your Recycle Bin that have been there for over 30 days. This is the "set it and forget it" solution for long-term drive health.
The Nuclear Option: Manual %temp% Deletion
Sometimes the automated tools are too polite. If you see "60GB of Temporary Files" in Settings but the "Remove files" button doesn't seem to do anything, you need to go in manually.
-
Press Windows Key + R, type %temp%, and hit Enter.
-
This drops you directly into the "hidden" folder where apps dump their daily trash.
-
Press Ctrl + A to select everything, then hit Delete.
The "File in Use" Error
You will almost certainly see a warning that a file is in use. Don't try to force-delete these. This just means the program (like Teams or your antivirus) is currently writing to that file. Check the box for "Do this for all current items" and hit Skip.
Why Windows Protects Certain Files (The 7-Day Rule)
You might notice that even after a "thorough" clean, some files remain. By default, Windows often ignores temporary files that have been modified within the last seven days.
The Reason: Microsoft does this to prevent system instability. Many installers extract files to the temp folder and require a system reboot to finish the job. If you deleted those files mid-install, the application would break upon restart. If a file won't budge, it's usually because Windows thinks it's still part of an ongoing process.
The 2026 Recommendation
If you want the best balance of safety and performance, Storage Sense is the way to go for 90% of users. It’s smarter than it used to be and won't delete things you're actively using. However, if you're a power user or a gamer struggling to fit a new 150GB install, the manual %temp% method remains the only way to ensure every possible megabyte is truly gone. Use Storage Sense for maintenance, but keep the %temp% command in your back pocket for emergencies.