Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
The safest way to automatically delete eligible temporary files in Windows 11 is Storage Sense. Open Settings > System > Storage > Storage Sense, turn it on, allow temporary-file cleanup, choose a schedule, and select Clean now if you want to run it immediately.
Use Storage Sense for automatic cleanup
- Open Settings.
- Go to System > Storage > Storage Sense.
- Turn on Storage Sense or Automatic User content cleanup, depending on your Windows 11 version.
- Confirm that temporary-file cleanup is enabled.
- Choose when Storage Sense should run: During low free disk space, Every day, Every week, or Every month.
- Select Clean now to run it immediately.
Microsoft documents Storage Sense in its Storage Sense support guide. Labels can vary slightly between Windows 11 releases.
Which schedule should you choose?
| Situation | Recommended setting | Reason |
|---|---|---|
| Typical Windows 11 PC | Every week | A practical balance between automatic maintenance and minimal disruption. |
| Small 64–128 GB drive | Every day or every week | Storage pressure can build quickly. |
| Large drive with plenty of free space | During low free disk space | Cleanup runs only when it is useful. |
| Computer used heavily for downloads | During low free disk space | Reduces the chance of unexpected removal if Downloads cleanup is enabled. |
For ordinary users, weekly cleanup is a good default. Microsoft also documents these policy values as 0 for low free space, 1 for daily, 7 for weekly, and 30 for monthly; those values are mainly relevant to device-management policies rather than normal Settings use.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11What Storage Sense can delete
Temporary files are not one single folder. They can include application working files, installer remnants, browser and application caches, thumbnail data, diagnostic logs, interrupted-operation leftovers, and some Windows upgrade-related files.
#1 Best Overall
- Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
- Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
- Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
- Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
- Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C
Storage Sense can manage:
- Eligible, unused user temporary files.
- Recycle Bin items older than the configured threshold.
- Downloads files older than a selected threshold, but only if you explicitly enable that option.
- Locally available cloud files, such as OneDrive files, by making them online-only according to your settings.
Downloads cleanup is not enabled simply because temporary-file cleanup is enabled. Treat it as a separate, potentially destructive setting. Likewise, making a OneDrive file online-only does not permanently delete it; it removes the local copy while keeping the file available in the cloud.
Microsoft’s Storage Policy CSP documentation describes the available thresholds and management controls.
What Storage Sense does not do
- It does not delete every file in every Temp folder.
- It primarily manages the Windows system drive, normally
C:. - It does not remove files currently locked by an application or Windows.
- It does not automatically make Downloads disposable.
- It is not a registry cleaner, malware-removal tool, or universal application-cache cleaner.
- It may not remove files outside its supported cleanup categories.
To inspect another drive, open Settings > System > Storage > Advanced storage settings > Storage used on other drives. A full non-system drive may require separate investigation.
Check temporary files manually
To see Windows’ categories and estimated space usage, open Settings > System > Storage > Temporary files. This page can include update files, delivery optimization data, thumbnails, crash dumps, and other categories that are not simply the contents of %TEMP%.
Rank #2
- Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
- Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
- Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
- Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
- From Sandisk, a brand professional photographers trust to take on assignments.
The two common temporary-file locations are:
%TEMP%
C:WindowsTemp
For a manual cleanup, close installers, browsers, games, video editors, and other active applications first. Delete the contents of the folder, not the folder itself. If Windows reports that an item is in use or access is denied, choose Skip. Do not force deletion of locked files.
Using Storage Sense is preferable for routine maintenance because it applies Windows’ own cleanup rules. Never manually delete the contents of C:WindowsWinSxS; Microsoft warns that doing so can damage Windows or prevent updates and startup. See Microsoft’s WinSxS cleanup guidance.
If Storage Sense is not enough
Try Cleanup recommendations
Open Settings > System > Storage > Cleanup recommendations and review the categories and estimated savings. This is useful when you want to see what is consuming space before deleting it, but it is primarily a review-and-confirm tool rather than a fully automatic schedule.
Recommended Free Tools
Use Disk Cleanup
- Search Windows for Disk Cleanup.
- Select the system drive, usually
C:. - Review the categories.
- Select Clean up system files for additional system categories.
- Review the expanded list again, then select OK and confirm.
Disk Cleanup is useful for occasional system-file cleanup and predefined cleanup profiles. Microsoft also documents its command and scheduling options in the cleanmgr reference.
Rank #3
- Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
- Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
- To get set up, connect the portable hard drive to a computer for automatic recognition no software required
- This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
- The available storage capacity may vary.
Advanced option: schedule PowerShell cleanup
Use a custom script only when Storage Sense does not provide the control you need. The following example targets only the signed-in user’s Temp directory and leaves a seven-day retention window:
$TempPath = $env:TEMP
$Cutoff = (Get-Date).AddDays(-7)
Get-ChildItem -LiteralPath $TempPath -Force -ErrorAction SilentlyContinue |
Where-Object { $_.LastWriteTime -lt $Cutoff } |
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
$env:TEMP limits the scope to the current user. AddDays(-7) avoids immediately removing newly created temporary data. -Force includes hidden items, while -Recurse handles eligible subfolders. The error setting skips locked, protected, or unavailable items instead of stopping the entire operation.
To schedule it:
- Save it as
C:ScriptsClean-UserTemp.ps1. - Open Task Scheduler and select Create Basic Task.
- Name it, choose Daily or Weekly, and select a time when the PC is normally on.
- Choose Start a program.
- Enter
powershell.exeas the program. - Use this argument:
-NoProfile -ExecutionPolicy Bypass -File "C:ScriptsClean-UserTemp.ps1" - Finish the task and test it manually from Task Scheduler.
This is custom automation, not an official Storage Sense configuration. Do not broaden it casually to C:WindowsTemp, other users’ profiles, or system directories. Review the result after the first few runs and delete the scheduled task if an application begins malfunctioning. Microsoft documents Remove-Item usage in its PowerShell file-and-folder examples.
Free tools Windows power users keep installed
One-click scans. No signup required.
When the Temp folder keeps growing
Automatic cleanup cannot solve a program that continuously recreates files. Use this sequence:
Rank #4
- NEARLY 2X FASTER THAN OUR PREVIOUS GENERATION(8) – move 1,000 high-res photos in under 60 seconds(6) with up to 2000MB/s transfer speeds(2).
- IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.
- POCKET-SIZED – fits easily in pockets and small bags.
- SPACE TO OWN YOUR AI CONTENT – speed and capacity to download your high-res clips and photo edits.
- 256-BIT AES ENCRYPTION(4) – helps keep private files secure with password protection.
- Restart Windows.
- Check whether the folder grows again immediately.
- Sort the folder by size and date.
- Look for filenames, timestamps, or patterns linked to a particular application.
- Update, repair, or reinstall the suspected application.
- Run Windows Security if the files or behavior look suspicious.
Microsoft notes that Microsoft Store .appx files can contribute to a rapidly filling Temp folder. In that situation, investigate Store-related troubleshooting rather than repeatedly deleting the symptom. See Microsoft’s drive-space troubleshooting guidance.
If storage remains full after cleanup, the space may be occupied by Windows Update data, restore points, hibernation, the page file, Windows.old, or another storage category. Do not delete Windows.old casually: removing it can eliminate the ability to roll back a recent Windows upgrade. Microsoft explains this in its Windows.old guidance.
Do you need a third-party cleaner?
Usually not. Storage Sense, Cleanup recommendations, and Disk Cleanup are sufficient for most Windows 11 users who want automatic temporary-file maintenance.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
BleachBit is a free, open-source option for readers who want broader, manually reviewed application and browser cleanup. CCleaner offers broader application and browser cleaning plus scheduling, but it introduces third-party privacy, trust, and over-cleaning considerations. Review every selected category rather than accepting a blanket cleanup.
Best Value
- Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
- Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
- To get set up, connect the portable hard drive to a computer for automatic recognition software required
- This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
- The available storage capacity may vary.
Choose a third-party utility only when you specifically need broader application coverage or scheduling that Storage Sense cannot provide. You do not need to buy one merely to automatically delete ordinary Windows temporary files.
Frequently Asked Questions
Does Storage Sense delete files in Downloads?
Not by default. Downloads cleanup is a separate option that must be enabled and configured.
Does Storage Sense delete OneDrive files?
It can make locally available cloud files online-only, but that is not the same as permanently deleting them.
Why are some Temp files still present?
They may be locked, outside Storage Sense’s supported categories, on another drive, or continuously recreated by an application.
Does deleting temporary files speed up Windows?
It reliably recovers storage and can reduce low-space problems, but a general performance improvement is not guaranteed.
Can I delete everything in %TEMP%?
Close active applications, delete only the contents, and skip files that are locked or inaccessible.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

