Skip to cookie settings

How to clear cache on Mac (and which caches to leave alone)

Clear known, rebuildable app caches one at a time after protecting offline or unsynced data; skip Apple, unknown and system folders.

Part of: What can I safely delete on my Mac? Safe, risky and never (Safe to delete)

To clear cache on a Mac, identify its owner and prefer the app’s own cache-control option. Before manual removal, save and sync work, export or back up wanted offline or unsynced data, then quit the app. Only remove verified rebuildable cache contents in a known third-party app’s folder inside ~/Library/Caches. Skip Apple (com.apple.*), unknown and system folders. For browsers, use the browser’s own clear-data option.

Clearing verified rebuildable cache data is usually low risk once wanted offline or unsynced data is protected. The catch is that it is a short-term fix: apps fill their caches again as you use them. Do it when a folder is large and you need the space now.

What a cache is

A cache is a stored copy of something an app can get again, such as a thumbnail or a web page. It makes the app faster. When it is missing, the app builds it again, and the first use is slower.

That is why clearing caches rarely frees space for long. You get the space back until the app needs the same data again.

User caches: safe per app

User caches live in ~/Library/Caches, with one folder per app. Steps:

  1. Identify the app whose cache you want to clear. Prefer its own cache-control option. Save and sync work; export or back up wanted offline or unsynced data and verify it is recoverable, then quit the app.

  2. List the folders by size to see which ones matter:

    du -sh ~/Library/Caches/* | sort -h
  3. Open the folder in Finder:

    open ~/Library/Caches
  4. Match the folder to a known third-party app. Skip Apple folders such as com.apple.* and any folder whose owner or contents you cannot verify. Move only rebuildable cache contents to the Trash; leave the folder itself in place.

  5. Before emptying the Trash, verify wanted offline or unsynced data remains recoverable and the app works as expected. Waiting or reopening the app alone does not prove all data is disposable. Emptying the Trash frees space permanently. See why the Trash does not free space.

Remove the contents of one app’s folder at a time. Do not select everything in Caches and delete it in one go. A blanket delete can hit apps that are open, and a few apps keep offline downloads there. The Library Caches guide lists the cases that need care.

System caches: leave them alone

There are caches outside your user folder too: /Library/Caches, /System/Library/Caches and the temporary folders under /private/var/folders. macOS and running apps use these. They are managed for you, and the gain from clearing them by hand is small while the risk is real. A cache that a running app expects to find can make the app crash or lose its state.

You can find your own temporary and cache folder under /private/var/folders with:

getconf DARWIN_USER_CACHE_DIR

It only prints a path. Read Can I delete /private/var/folders? before touching it.

Browser caches: clear from the browser

Clear a browser’s cache from inside the browser. Its clear-data dialog lists the cache separately from passwords, cookies and history. Choose only cached images and files. You stay signed in to your sites, and your saved passwords are not touched.

Digging through the browser’s folders by hand is not needed and makes mistakes more likely.

Developer caches

Developer tools such as Xcode keep large caches that rebuild on the next run. Rebuilding can take a long time, so clear them with the tool’s own method when you can. The Xcode cleanup guide covers that case.

The Safe / Risky / Never box

Item Label What breaks if it goes
Verified rebuildable cache contents of a known third-party app, app closed and wanted offline/unsynced data protected Safe The app is slower once and rebuilds the cache. Skip Apple and unknown folders.
Browser cache, cleared in the browser Safe Pages load slower once. Passwords and logins stay.
Developer tool caches Risky Long rebuilds or downloads on the next run.
Offline downloads or unsynced work kept in a cache folder Risky Downloads may need fetching again; unsynced work may be lost. Preserve wanted data first.
Apple (com.apple.*) or unidentified folders in ~/Library/Caches Never (by hand) Ownership and rebuildability are not established; leave them alone.
Everything in ~/Library/Caches at once Risky Open apps can misbehave, and offline content is lost.
/Library/Caches Never (by hand) System-wide data macOS manages.
/System/Library/Caches Never Protected macOS data.
/private/var/folders Never Running apps can crash or lose state.

When clearing cache is worth it

  • A single app folder is large and you need the space.
  • An app shows old or broken content and a fresh start might fix it.

If neither applies, leave the caches. They are doing their job.

Common mistakes

  • Using a “clean everything” button without reading the list. Some cleaners delete whole system cache folders. Ask what exactly will be removed.
  • Clearing while the app runs. Quit first, or the app can error out.
  • Clearing the same cache often. The app slows down each time it refills, so frequent clearing can make the Mac feel slower, not faster.
  • Emptying the Trash before checking retained data. Space comes back after emptying, but offline or unsynced work may be lost permanently. Verify wanted data is recoverable first.

Quick checklist

  1. Find the largest folders with the du command.
  2. Identify a known third-party owner; skip Apple (com.apple.*) and unknown folders, and prefer the app’s cache-control option.
  3. Save and sync work; export or back up wanted offline or unsynced data, verify recovery, then quit the app.
  4. Trash only verified rebuildable cache contents. Before emptying, confirm wanted data remains recoverable and the app works.
  5. Check free space with df -h /, which only reads.

See which caches are large

DiskJoy is our product. It scans your disk and shows reclaimable space by category, including caches. It is read-only today, and cleanup is not available yet. The scan can show which cache folders are worth your attention before you open Finder.

Frequently asked questions

Is it safe to delete cache files on a Mac?

Known, rebuildable user and browser caches can be cleared after protecting offline or unsynced data and closing the app. Prefer the app's cache-control option; skip Apple and unknown folders. System caches under /Library, /System and /private/var are better left to macOS.

Will clearing cache delete my passwords?

No. A cache is temporary copies of pages, images and data. Saved passwords and logins are stored separately. Browsers list cache and passwords as separate choices, so leave the passwords option unticked.

How often should I clear the cache?

Rarely. Caches exist to make things faster, and they refill as you work. Clear one when a particular folder is large and you need the space, or when an app misbehaves.

Tags:CachesLibrarymacOS storage

See what’s taking up space on your Mac

DiskJoy explains every item and removes nothing until you review it.
Download for Mac

Cookies on diskjoy.com

Your browser sends a Global Privacy Control signal. We honoured it: analytics and marketing cookies are off.

Necessary cookies run this site. Analytics shows us how it is used: if you accept it, Google receives data about your visit. Change this anytime in Cookie Settings. How Google uses data Cookie Policy Privacy policy

Customize

Purpose
Needed for the site to work and to remember your cookie choice.

Cookies

  • sy_consent - Stores your cookie choice (Retention: 12 months)

Other browser storage

  • sy_consent_pending (localStorage) - Queues your choice until it reaches our server (Retention: until deleted)
Purpose
Show us which pages are visited and how the site is used, so we can improve it. Provider: Google Ireland Ltd (Google Analytics 4).

Cookies

  • _ga - Distinguishes visitors to count them (Retention: 400 days)
  • _ga_TP2XMLG27P - Keeps the state of your current visit (Retention: 400 days)

Recipients

Data controller

Sylentis Group sp. z o.o.. Contact: support@diskjoy.com. Privacy policy

Google may process data outside the European Economic Area (EEA). Safeguards: EU-US Data Privacy Framework, standard contractual clauses.

Right to withdraw

You can withdraw consent at any time, as easily as you gave it. Withdrawal does not affect the lawfulness of processing before it.