How to Delete Temp Files on Windows, Mac, and Android

Temporary files are the digital equivalent of sticky notes left all over your desk — useful in the moment, but they pile up fast. Knowing how to delete them properly can recover storage space, speed up a sluggish system, and reduce clutter without touching anything important.

What Are Temp Files, Exactly?

Temporary files (often called "temp files") are created automatically by your operating system and applications during normal use. They serve several purposes:

  • Holding data while a file is being saved or processed
  • Caching frequently accessed information to speed up loading
  • Storing installation packages during software setup
  • Keeping session data for browsers, games, and productivity apps

The key word is temporary — these files are meant to be deleted once their job is done. The problem is that many programs don't clean up after themselves reliably, so temp files accumulate over time.

On a busy system, it's not unusual to find several gigabytes of temp files taking up space across a few months of normal use.

Where Temp Files Live

Understanding where they're stored helps you delete them confidently.

Operating SystemCommon Temp File Locations
WindowsC:WindowsTemp and %AppData%LocalTemp
macOS/var/folders/ and ~/Library/Caches/
Linux/tmp/ and /var/tmp/
AndroidInternal storage › App cache (per app)
iOSManaged by the OS; cleared via app offloading

These locations vary slightly by OS version, but the general structure is consistent across modern systems.

How to Delete Temp Files on Windows 🧹

Windows gives you a few straightforward options.

Using Disk Cleanup (Built-In Tool)

  1. Press Windows + S, type Disk Cleanup, and open it
  2. Select the drive you want to clean (usually C:)
  3. Check Temporary files, Temporary Internet Files, and any other categories you want cleared
  4. Click OK, then Delete Files

Using the Run Dialog (Manual Method)

  1. Press Windows + R to open the Run box
  2. Type %temp% and press Enter
  3. Select all files (Ctrl + A) and delete them
  4. Skip any files that show a "file in use" warning — those are actively needed right now

Using Storage Sense (Automatic Option)

Windows 10 and 11 include Storage Sense, a setting that automatically removes temp files on a schedule you control. Find it under Settings → System → Storage → Storage Sense. This is useful for hands-off maintenance.

How to Delete Temp Files on macOS

macOS handles some cache management automatically, but you can clear temp files manually.

Clearing System and User Caches

  1. Open Finder
  2. Click Go in the menu bar, then hold Option to reveal the Library folder
  3. Open Caches and delete the folders belonging to apps you use regularly
  4. Empty the Trash afterward

Alternatively, restart your Mac — macOS clears the /tmp directory on reboot by default.

Using Third-Party Utilities

Apps like CleanMyMac, OnyX, or BuhoCleaner can automate this process, though their thoroughness and safety vary. The built-in manual method is reliable for most users.

How to Delete Temp Files on Android 📱

Android doesn't have a single "temp folder" you can access, but cached data builds up per app.

Clearing App Cache Individually

  1. Go to Settings → Apps (or Application Manager on some devices)
  2. Select an app
  3. Tap Storage, then Clear Cache

This removes temporary data for that app without deleting your personal data or login information.

Clearing All Cache at Once (Varies by Device)

Some Android versions and manufacturer skins (Samsung One UI, Xiaomi MIUI, etc.) offer a bulk cache cleaner under Settings → Storage → Cached Data. On others, you'll need to use a storage management app or clear apps individually.

Note: "Clear Data" and "Clear Cache" are different. Clear Cache removes temporary files. Clear Data resets the app entirely, including accounts and preferences.

Factors That Affect How Much This Matters

Not everyone will see the same benefit from deleting temp files. Several variables shape the real-world impact:

  • Available storage: On a device with 1TB free, temp file accumulation is rarely urgent. On a device with 16GB or 32GB of total storage, it can become critical quickly.
  • How long since last cleanup: A system that's never been cleaned may have significantly more recoverable space than one maintained regularly.
  • Which apps you use: Video editors, browsers, and games generate far more temporary data than basic productivity tools.
  • OS version: Newer versions of Windows and macOS tend to manage temp files more aggressively on their own than older versions did.
  • SSD vs. HDD: On SSDs, keeping storage below ~80% capacity is a common best practice to maintain performance. Temp file buildup can push past that threshold without you realizing it.
  • Technical comfort level: Manual deletion via file paths requires a bit of confidence. Built-in tools and automated settings suit most users better than manually navigating system folders.

What's Safe to Delete — and What Isn't

This is where many people hesitate, and reasonably so.

Generally safe to delete:

  • Files in %temp% on Windows (any that aren't in active use)
  • Browser caches across all platforms
  • App caches on Android
  • Old installation files and setup logs

Use caution with:

  • Files inside active application directories
  • Anything in System32 or core OS folders
  • Files flagged as "in use" — skip these, don't force-delete them

Leave alone:

  • Pagefile and hibernation files (these look large but serve a purpose)
  • Anything you didn't navigate to intentionally

The right approach depends heavily on your OS, how comfortable you are in system directories, and whether your device is showing actual symptoms — like low storage warnings or slower-than-usual performance — or whether you're doing routine maintenance.