You can erase temp files on Windows using Settings, Disk Cleanup, or the %temp% folder, and on macOS by clearing browser caches and the ~/Library/Caches/ folder — all without third-party software.
A hard drive crammed with temporary files is the most common cause of “low disk space” warnings that don’t involve real data. These leftover scraps — installers, thumbnail previews, old update bits — sit in hidden folders and grow silently until a 50 GB system partition has 2 GB free. The fix takes less than five minutes on either platform, and nothing in this guide requires a paid tool.
What Are Temp Files And Why Do They Matter?
Temp files are data your operating system and apps created for a short-term purpose — a document autosave, a browser image cache, a Windows Update installer — and then forgot to delete. Most are harmless, but they accumulate until they consume noticeable space. Cleaning them once a month reclaims gigabytes without touching your documents, photos, or installed programs.
Windows: The Three Quickest Ways To Erase Temp Files
Windows offers three built-in cleanup routes. Start with the fastest, then use the deeper options when you need more space.
Method 1: The %temp% Folder (Fastest)
This targets the user-specific temp folder where most leftover files live.
- Press Windows + R on your keyboard.
- Type %temp% and press Enter.
- Press Ctrl + A to select everything in the folder.
- Press the Delete key. Windows will skip any file that is still in use — that is normal and safe.
- Now open C:\Windows\Temp using the same Windows + R trick, and repeat steps 3 and 4.
The folder empties out, and you see only a few files that were skipped with a “file in use” message.
Method 2: Storage Settings (Most Controlled)
This method lets you choose exactly which temp categories to delete.
- Open Settings and go to System > Storage.
- Click Temporary files. Windows will scan and show a breakdown by category — temporary files, delivery optimization files, and more.
- Check the boxes for the categories you want to remove. Leave Downloads unchecked unless you have already backed up anything in that folder.
- Click Remove files and confirm.
The space total at the top of the Storage page drops immediately after the removal finishes.
Method 3: Disk Cleanup (Legacy But Complete)
Disk Cleanup finds temp files older tools miss, including system-error memory dumps and old Windows Update backups.
- Search for Disk Cleanup in the Start menu and open it.
- Select the drive you want to clean (usually C:) and click OK.
- After the scan, check the box next to Temporary files and any other category you want to clear.
- Click Clean up system files for additional options like Windows Update Cleanup, then confirm.
The progress bar runs for a few seconds, and the freed space is reported in the Disk Cleanup results window.
macOS: Erasing Temp Files Without Third-Party Apps
Apple does not offer a single “delete all temp files” button, so the safe approach is to clear user caches and browser temp data separately.
Clearing User Cache Folder
- Quit any apps you are not actively using.
- In Finder, click Go in the menu bar and choose Go to Folder.
- Type ~/Library/Caches/ and press Return.
- You will see folders named after apps. Drag the folders of apps you no longer use — or all of them — to the Trash.
- Empty the Trash.
The Trash shows the folders you moved, and after emptying it, the drive’s available space increases by the size of those caches.
Clearing Browser Caches On Mac
Browser temp files can grow into multiple gigabytes on a machine used heavily for streaming or web apps.
Safari: Go to Safari > Settings > Privacy and Security and click Delete browsing data. Make sure Cached images and files is checked, then confirm. If you have the Develop menu enabled, you can also use Develop > Empty Caches.
Chrome: Open Chrome and go to Settings > Privacy and security > Delete browsing data. Choose a time range (e.g., All time), keep Cached images and files selected, and click Delete data.
How Much Space Can You Actually Reclaim?
The real-world yield varies by usage. The table below shows typical results from a single cleanup pass.
| Cleanup Method | Typical Space Freed | Best For |
|---|---|---|
| %temp% + C:\Windows\Temp | 500 MB – 3 GB | Quick weekly maintenance |
| Windows Storage Settings | 1 – 10 GB | Monthly deep clean with category control |
| Disk Cleanup (with system files) | 2 – 15 GB | Post-update cleanup, reclaiming old Windows versions |
| macOS ~/Library/Caches/ | 200 MB – 2 GB | Mac cache cleanup, app leftovers |
| Safari or Chrome cache clear | 100 MB – 1 GB | Browser slowdown or privacy reset |
| Storage Sense (Windows, automated) | Varies (set to run daily/weekly/monthly) | Hands-off recurring cleanup |
| Third-party cleaner (CleanMyMac, etc.) | Comparable to manual methods | Users who prefer a GUI with recommendations |
Set It And Forget It: Using Windows Storage Sense
If you want Windows to erase temp files automatically, Storage Sense is the answer. Go to Settings > System > Storage and toggle on Storage Sense. Click Configure Storage Sense or run it now, then choose how often it runs — daily, weekly, or monthly — and whether it deletes files in the Downloads folder or Recycle Bin. Once set, it cleans itself.
Three Mistakes That Waste Your Effort
- Deleting files that are still in use. Windows will refuse to delete them anyway, but on Mac, closing the related app first avoids errors and leftover fragments.
- Confusing %temp% and C:\Windows\Temp. Both need to be cleaned separately; one is for your user account, the other for system-wide temp files.
- Clearing your Downloads folder with Storage Sense without checking it first. The same setting that deletes temp files can also remove installer files you may want to keep.
Your Monthly Cleanup Checklist
Follow this order once a month to keep your system running lean:
- Windows: Run the %temp% command, then open Storage Settings and clear Temporary files. Run Disk Cleanup with Clean up system files after a major Windows update.
- macOS: Quit all apps, clear ~/Library/Caches/, then clear the cache in your primary browser.
- Either platform: Empty the Recycle Bin or Trash. Enable automated cleanup (Storage Sense on Windows) if you prefer set-and-forget maintenance.
References & Sources
- Microsoft. “How to Delete Temporary Files in Windows.” Official Windows Learning Center guide covering %temp%, Storage Settings, and Disk Cleanup.
- MacPaw. “How to Delete Temporary Files on Mac.” Step-by-step for clearing ~/Library/Caches/ and browser caches on macOS.
- CU Boulder Tech Tips. “Improve Laptop Performance — Deleting Temporary Files.” Practical advice on temp file safety and storage management.
