How to Delete Temporary Files on Windows, Mac, and Android
Temporary files are created constantly in the background of your device — by your operating system, your browser, your apps, and update processes. Most of the time they're invisible. But over weeks and months, they stack up, consuming storage space and occasionally slowing things down. Knowing how to clear them is one of the most practical maintenance habits you can develop.
What Temporary Files Actually Are
Temporary files (often called "temp files") are data fragments that software creates to store information it needs right now but doesn't intend to keep permanently. Common examples include:
- Browser cache — saved copies of images, scripts, and pages to speed up repeat visits
- App cache — data apps store locally to avoid re-downloading the same content
- Windows Temp folder — files created during installations, updates, or app sessions
- Thumbnail cache — previews Windows generates for images and videos in File Explorer
- Log files — records of system events and errors
In theory, these files delete themselves. In practice, many don't — especially after failed updates, crashed apps, or interrupted installs.
How to Delete Temporary Files on Windows
Using Disk Cleanup (All Windows Versions)
The built-in Disk Cleanup tool is the safest starting point:
- Press Windows + S, type Disk Cleanup, and open it
- Select the drive you want to clean (usually C:)
- Check the boxes for Temporary files, Thumbnails, and Temporary Internet Files
- Click OK, then Delete Files
For a deeper clean, click Clean up system files in the same tool — this adds options to remove old Windows Update files, which can be several gigabytes.
Using Windows Settings (Windows 10 and 11)
- Go to Settings → System → Storage
- Click Temporary files
- Windows will list what's there and how large each category is
- Check what you want to remove and click Remove files
This method gives you more visibility into exactly what you're deleting.
Using the Run Dialog (Manual Method)
For direct access to the temp folder:
- Press Windows + R, type %temp%, press Enter
- Select all files (Ctrl + A) and delete them
- Skip any files that can't be deleted — they're in use and Windows will warn you
Repeat with temp (without the % signs) in the Run dialog for the system-level temp folder.
Storage Sense (Automatic Cleanup)
Storage Sense is Windows' built-in automatic temp file cleaner. You can turn it on in Settings → System → Storage → Storage Sense and configure it to run daily, weekly, or monthly. It handles most routine temp file accumulation without you touching anything.
How to Delete Temporary Files on macOS 🗑️
Mac handles temp files differently. macOS automatically clears most system-level temp files, but browser cache and app data still accumulate.
- Browser cache: Clear it from within each browser (usually under Settings → Privacy → Clear Browsing Data)
- App caches: Found in ~/Library/Caches/ — you can navigate there via Finder → Go → Go to Folder, then selectively delete folders for apps you no longer use
- System junk: Third-party tools exist to automate this, but macOS's built-in Optimize Storage (under Apple Menu → About This Mac → Storage → Manage) handles the most impactful cleanup
Be careful manually deleting from the Caches folder — some app caches will simply rebuild, but others may cause apps to behave unexpectedly until they do.
How to Delete Temporary Files on Android 📱
Android manages temp files at the app level rather than through a central folder.
- App cache: Go to Settings → Apps, select an app, tap Storage, then Clear Cache. This removes the app's temporary data without deleting your account info or settings.
- Clear Data goes further — it resets the app to a fresh state, which means you'll need to log back in
- Browser cache: Each browser has its own clear cache option under its settings menu
Some Android manufacturers include a built-in Phone Manager or Storage Cleaner tool that handles this across all apps at once.
Variables That Change the Right Approach
The best method depends on several factors:
| Factor | What It Affects |
|---|---|
| OS version | Older Windows versions lack Storage Sense; macOS auto-cleans more aggressively |
| Storage type | On SSDs, temp file buildup matters less for speed but still eats capacity |
| Available space | If you're near-full, targeting Windows Update leftovers yields the biggest gain |
| Technical comfort | Manual methods give control; built-in tools are safer for most users |
| App usage patterns | Heavy browser or media app use creates more cache than light office use |
What's Actually Safe to Delete
As a general rule:
- Browser cache — always safe to clear; pages just load slightly slower on the next visit
- App cache — safe; apps rebuild it automatically
- Windows Temp folder contents — mostly safe; skip files Windows flags as in-use
- Old Windows Update files — safe once your system is stable and updated
- Log files — safe unless you're troubleshooting an active problem
Don't delete files you can't identify in system directories, and avoid third-party "cleaner" apps that make aggressive promises — some remove files that are legitimately needed or bundle unwanted software.
The Part That Depends on Your Setup
How much space you'll recover, how often you should run cleanup, and which method makes the most sense varies based on your device, your operating system version, how you use your machine, and how full your storage is. Someone on a 128 GB laptop running daily video editing has a very different situation than someone on a 1 TB desktop who mostly uses a browser. The mechanics above apply broadly — but the right rhythm and priority order for your device comes down to what's actually accumulating on it.