How to Delete Temp Files in Windows 11
Temporary files are one of those things Windows creates constantly — and rarely cleans up on its own. Over time, they accumulate quietly in the background: leftover installer packages, cached browser data, thumbnail previews, Windows Update remnants, and more. On a well-used machine, this can add up to several gigabytes of wasted space.
The good news is Windows 11 gives you multiple ways to deal with them, ranging from fully automated to hands-on manual control.
What Are Temp Files, Exactly?
Temporary files are data Windows and your apps create for short-term use. In theory, they're supposed to be deleted automatically once a task is complete. In practice, they often aren't.
Common sources include:
- Windows Update — installation packages that linger after updates finish
- App caches — data apps store to speed up future loads
- Browser caches — images, scripts, and page data saved locally
- Thumbnail cache — previews Windows generates for File Explorer
- Prefetch files — startup data to help apps launch faster
- Recycle Bin contents — files you've deleted but not permanently removed
Most of these live in C:WindowsTemp and C:Users[YourName]AppDataLocalTemp. They're generally safe to delete, though a few — like prefetch files — serve a functional purpose that some users prefer to keep.
Method 1: Use Windows 11 Settings (Easiest)
The built-in Storage panel is the cleanest starting point for most users.
- Open Settings → System → Storage
- Click Temporary files
- Windows will scan and present a categorized list — items like Windows Update Cleanup, Delivery Optimization Files, Thumbnails, and Recycle Bin
- Check the categories you want to remove
- Click Remove files
This method is safe, clearly labeled, and doesn't require any technical knowledge. It also shows you the estimated size of each category, so you can make informed choices about what to clear.
🧹 One thing to note: Windows Update Cleanup can often reclaim the most space — sometimes 1–4 GB on systems that haven't been cleaned in a while — but the exact amount depends on your update history.
Method 2: Run Disk Cleanup
Disk Cleanup is an older tool still included in Windows 11. It covers similar ground but also offers a Clean up system files option that requires administrator access and unlocks additional categories.
- Search for Disk Cleanup in the Start menu
- Select your system drive (usually C:)
- After scanning, check the file types you want to remove
- For deeper cleaning, click Clean up system files and repeat
Disk Cleanup is particularly useful for finding Previous Windows Installations — large leftover folders from in-place upgrades that Windows keeps for 10 days as a rollback option. Once you're confident your upgrade is stable, these are safe to remove.
Method 3: Delete Temp Files Manually
For users who want direct control, you can access the temp folders yourself.
User temp folder:
- Press Windows + R
- Type
%temp%and press Enter - Select all files (Ctrl + A), then delete
System temp folder:
- Press Windows + R
- Type
tempand press Enter - Select and delete as above
Some files will be in use by running processes and can't be deleted — Windows will flag these. Simply skip them. They'll be available for cleanup the next time you run this after a restart.
Method 4: Enable Storage Sense for Automatic Cleanup 🔄
Storage Sense is Windows 11's built-in automation tool. Once enabled, it runs cleanup tasks on a schedule — or when your disk space drops below a threshold.
To configure it:
- Go to Settings → System → Storage
- Toggle on Storage Sense
- Click Storage Sense to configure frequency and scope
- You can set it to run daily, weekly, monthly, or only when low on space
Storage Sense can automatically clear the user temp folder, empty the Recycle Bin after a set number of days, and remove locally cached cloud files that haven't been opened recently. The specific options depend on whether you have OneDrive connected.
What You Might Want to Leave Alone
Not everything in the temp ecosystem is dead weight:
| File Type | Purpose | Safe to Delete? |
|---|---|---|
| Prefetch files | Speed up app launches | Generally yes, but minor performance impact |
| Browser cache | Faster page loads | Yes, but pages may load slower initially |
| Windows Update cache | Rollback option for recent updates | Yes, after confirming update stability |
| App-specific cache | Varies by application | Usually yes, app will rebuild it |
| Previous Windows install | OS rollback point | Yes, after 10-day window passes |
The Variables That Shape Your Experience
How much temp file cleanup actually matters — and which method makes sense — depends on a few things that vary person to person.
Storage type and capacity plays a significant role. On a 256 GB SSD that's nearly full, reclaiming 5 GB makes a real difference. On a 2 TB drive with plenty of headroom, the urgency is lower.
How often you run Windows Updates affects how much update-related clutter accumulates. Frequent updates mean more leftover installation packages.
Your app ecosystem matters too. Heavy users of creative software, IDEs, or browsers tend to generate larger caches than someone who primarily uses lightweight web apps.
Technical comfort level determines which method suits you. Storage Sense is hands-off and low-risk. Manual deletion gives more control but requires knowing what you're looking at.
System performance vs. storage space is also a tradeoff worth considering. Some cached files — browser caches, prefetch data — genuinely speed things up. Clearing them frees space but at the cost of a short-term slowdown while they rebuild.
Whether you're doing a one-time cleanup or setting up an ongoing strategy, the right balance between automation, manual control, and what you leave intact depends entirely on how your system is used and what you're trying to solve.