CleanLoupe
FRAME 01 · STORAGE

How to Clear Cache on Mac (and When You Shouldn't)

To clear cache on a Mac, quit the app whose cache you want to remove, open Finder, choose Go › Go to Folder, type ~/Library/Caches, and move that app's folder to the Trash. Browser caches are cleared from inside each browser instead. Caches are normal and they rebuild, so clear them when one has grown large or an app is misbehaving, not as a routine.

This guide covers the three kinds of cache you can deal with, the folders to leave alone, and a quick way to measure before you delete.

What a cache is, and why it comes back

A cache is a local copy of something an app would otherwise have to download or compute again: thumbnails, web assets, map tiles, compiled shaders, previews. Keeping it makes the app faster next time. When you delete a cache, nothing breaks, but the app rebuilds it the next time it needs that data, which can make the first launch afterwards a bit slower.

That has two practical consequences. First, clearing caches frees space only temporarily for apps you use every day, because they fill the cache again. Second, the real wins come from caches of apps you rarely use or no longer have, and from a single cache that has grown unusually large.

macOS also manages caches itself. Some are marked as purgeable and removed automatically when the disk is short on space, as explained in what purgeable space on a Mac is.

Step 1: Measure your caches first

Before deleting anything, find out whether caches are worth your time. In Terminal:

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

The first line gives the total. The second lists the 15 largest cache folders, largest at the bottom. Folder names are usually bundle identifiers such as com.spotify.client or com.google.Chrome, which tell you which app owns them.

If the total is small compared with your disk, look elsewhere first. What is taking up space on your Mac shows how to find the bigger targets.

Step 2: Clear app caches in your user Library

This is the cache folder you can safely work in.

  1. Quit the app whose cache you want to clear. An app that is running may recreate or still use files while you delete them.
  2. In Finder, choose Go › Go to Folder (Shift-Command-G), type ~/Library/Caches and press Return.
  3. Switch to List view and turn on View › Show View Options › Calculate all sizes, then sort by Size.
  4. Select the folder for the app (for example com.spotify.client) and choose File › Move to Trash.
  5. Open the app again to check it works, then empty the Trash.

Delete the app's folder inside Caches, never the Caches folder itself.

Folders to leave alone

Some folders in ~/Library/Caches hold live state rather than disposable copies. Skip folders that belong to Apple services such as iCloud (CloudKit), Find My, Wallet and similar com.apple items you can't identify. Removing them saves little and can make those services resync or ask you to sign in again.

Also leave alone folders outside Caches that look like caches but aren't. ~/Library/Application Support holds actual app data: libraries, settings, offline content, sometimes your documents. Read whether it is safe to delete Application Support before touching it.

Developer caches

Package managers and build tools keep caches outside ~/Library/Caches, in hidden folders like ~/.npm or ~/.gradle, and most have their own clean command. For example:

npm cache verify

Those are covered in detail in freeing disk space on a developer Mac.

Step 3: Clear system caches carefully

/Library/Caches (without the tilde) is the system-wide cache folder, shared by all users and owned by the system or by installed software. Measure it first:

sudo du -sh /Library/Caches/* 2>/dev/null | sort -h | tail -10

You can move a clearly identified third-party folder from there to the Trash; Finder will ask for your administrator password. Leave Apple's own folders alone. There is rarely much space to gain here, and it's the place where a mistake is most likely to cause trouble.

Never delete anything under /System/Library/Caches. macOS protects that location, and it is not where your space went.

Step 4: Clear browser caches from inside the browser

Browser caches live under ~/Library/Caches too, but each browser has a proper setting that clears them cleanly, including the parts stored elsewhere. Using it avoids logging you out of sites unless you choose to.

  • Safari: turn on Safari › Settings › Advanced › "Show features for web developers". Then use Develop › Empty Caches. To remove website data as well, use Safari › Settings › Privacy › Manage Website Data.
  • Chrome: Chrome menu › Delete Browsing Data, choose a time range and tick "Cached images and files" only.
  • Firefox: Settings › Privacy & Security › Cookies and Site Data › Clear Data, then tick "Cached Web Content" only.

Menu names in browsers change between versions. If one isn't where described, search the browser's settings for "cache".

Logs, the cache-adjacent cleanup

App logs in ~/Library/Logs are text files that apps write for troubleshooting. They aren't caches, but they are equally disposable once old:

du -sh ~/Library/Logs

Move old log folders to the Trash the same way. They are typically small, so only bother if du shows otherwise.

If you cleared caches and the System Data bar barely moved, that is expected: caches are only one part of it. The System Data guide explains the rest.

How CleanLoupe clears caches

CleanLoupe's Cleanup module lists app caches from ~/Library/Caches as Safe, and deliberately skips caches that hold live state, like iCloud, Find My and Wallet. Apple's own caches are never preselected, and neither is anything written in the last hour, so an app that is currently using its cache isn't caught mid-write. App logs from ~/Library/Logs are listed as Safe too. Command-line tools that keep their cache in ~/.cache, such as the Firebase CLI and uv, are listed the same way, and the caches and logs that Claude, VS Code, Cursor and Windsurf keep inside ~/Library/Application Support appear in a separate AI tools group, without their settings or history.

System caches in /Library/Caches are listed separately and marked Review. Removing them goes through the standard macOS administrator password prompt; the app never sees your password. System crash logs in /Library/Logs/DiagnosticReports and /Library/Logs/CrashReporter are listed the same way.

Whatever you remove goes to the Trash and appears in History, where Put Back restores it until you empty the Trash. That means a cache you wish you had kept is one click away.

What it doesn't do: it doesn't clear browser caches through the browser's own settings, so use Step 4 for those. It is free, with no subscription, trial, ads or account, for macOS 15 Sequoia or later.

For the full sequence of space-saving steps beyond caches, see how to free up space on Mac.

FAQ

Is it safe to delete everything in ~/Library/Caches?

Mostly, but it isn't a good idea to delete it all at once. Delete individual app folders with the app quit, and skip folders tied to Apple services like iCloud or Find My, which hold live state.

Will clearing cache delete my files or passwords?

Clearing app caches in ~/Library/Caches doesn't delete your documents or Keychain passwords. Clearing a browser's cookies or website data can sign you out of sites, which is why the browser steps above tick the cache option only.

How often should I clear cache on a Mac?

There is no need for a schedule. Clear a cache when it has grown large, when an app shows stale or broken content, or when you have removed the app it belongs to.

Why is my cache folder so large?

Usually because of one or two apps, not hundreds of small ones. The usual suspects are browsers, Spotify and other streaming apps that keep offline audio, Xcode, Adobe apps, JetBrains IDEs, and command-line tools such as Homebrew and pip. The du command in Step 1 shows which folders they are. Many apps have a cache-size limit in their own settings, and tools have their own clean commands; see freeing up space from Homebrew and cleaning up Python.

What happens if I delete cache on a Mac?

Nothing breaks. Apps rebuild what they need, so the first launch afterwards is slower and some images or previews load again. Clearing a browser's site data can sign you out of websites. Your documents and Keychain passwords aren't stored in caches, so they aren't affected.

Why does my cache folder fill up again?

Apps rebuild their caches as you use them. That is normal behaviour and the reason routine cache clearing frees space only briefly.

How do I clear the system cache on a Mac?

Third-party system caches live in /Library/Caches and need an administrator password to remove. Leave Apple's folders there and everything under /System alone.

To see your caches labelled and sorted, with Put Back if you change your mind, download CleanLoupe.

FRAME 10 · KEEP READING