509 Highland Ave, Morton, PA 19070 Mon–Fri 8:00–18:00 +1 (215) 370-3417 Mac maintenance for teams →

Guide/Temp files

Storage guide

How to delete temp files on a Mac

Temporary files are not stored in one place, and macOS clears most of them on its own. Here are the folders worth checking, the ones to leave alone, and how to clear them without a third-party tool.

  • Updated November 13, 2026
  • 5 min read
  • Finder or Terminal
Short answer

Quit the apps, then clear ~/Library/Caches and your browser caches. The system folders /tmp and /private/var/tmp are emptied by macOS on restart — a reboot does the job, and manual deletion there is rarely worth the risk.

01Where macOS keeps temporary files

LocationWhat it holdsClear it?
~/Library/CachesPer-user app cachesYes, contents only
/tmp and /private/var/tmpSystem and installer temp filesRestart instead
~/Library/LogsDiagnostic logsYes
~/Library/Application SupportApp data and some cachesOnly app-specific folders
/private/var/vmSwap and sleep imagesNo

The important distinction is between user-level temporary data, which is safe to remove, and system-level temporary data, which macOS manages itself. The paths are identical on a MacBook Air, MacBook Pro, iMac and Mac mini; only the macOS version affects which folders exist.

02Clear user caches

In Finder, press ⇧⌘G and open:

~/Library/Caches

Sort by size, then delete the contents of the folders belonging to apps you recognise. Keep the folders themselves so the apps can find their cache location.

Do the same with logs, which are pure diagnostics:

~/Library/Logs

03Browser caches

  • Safari: Settings → Privacy → Manage Website Data → Remove All.
  • Chrome: Settings → Privacy and security → Delete browsing data → Cached images and files.
  • Firefox: Settings → Privacy & Security → Cookies and Site Data → Clear.

Browser caches are usually the single biggest chunk of removable data on a work Mac, especially for people who live in web apps all day.

04System temp folders: reboot, do not delete

macOS writes installer and process scratch data to /tmp and /private/var/tmp. Both are cleared on restart, and both contain files that running processes may still be using.

If you must look, do it read-only first:

sudo du -sh /private/var/tmp/* 2>/dev/null | sort -h | tail -10

Deleting files there while an installer or update is running is a reliable way to break that process. A restart achieves the same cleanup without the risk.

05Terminal method (optional)

If you prefer the command line, check what is large before deleting anything:

du -sh ~/Library/Caches/* 2>/dev/null | sort -h | tail -20

Then remove a specific app's cache, for example:

rm -rf ~/Library/Caches/com.example.app
Careful

Never run sudo rm -rf on a folder you have not listed first. A typo in a path can delete a library or a project. Read the output of the listing command, then delete the exact folder.

06What not to delete

  • /System, /Library, /usr — required by macOS.
  • /private/var/db — system databases.
  • /private/var/vm — swap files used by memory management.
  • Anything inside an app bundle (.app) — it breaks the app's signature.

Also skip "deep cleaner" tools that require disabling System Integrity Protection. That trades a security control for a few gigabytes, which is a bad exchange on any machine that holds company data.

07Frequently asked questions

Does deleting temp files slow down my Mac?

Only for the first launch: apps rebuild their caches, which takes a moment. After that, performance is the same or better because the disk has free space again.

Can I delete the whole Caches folder?

The folder itself should stay. Delete its contents instead, so apps keep a valid cache location to write to.

Do I need to empty the Trash afterwards?

Yes. Files moved to the Trash still occupy disk space until the Trash is emptied.

How often should temp files be cleared?

There is no schedule worth following. Clear them when the disk is nearly full or when an app misbehaves — macOS handles routine cleanup itself.

Repeat this on 40 Macs?

We turn ad-hoc cleanup into a written runbook and run it across a company fleet on a schedule, so nobody has to remember which folder is safe.

See business options