DiskMac

How to Clear Cache on Mac (Safely, and When It's Worth It)

DiskMac in the Terminal theme, illustrating a guide to clearing Mac caches

Caches are files apps keep so they don’t have to download or compute the same thing twice. Clearing them frees space, and occasionally fixes a misbehaving app. It doesn’t make your Mac faster — usually the opposite, briefly, while caches rebuild.

When clearing cache is worth it

User caches (~/Library/Caches)

This is where most apps keep their caches. It is safe to clear, with the apps closed.

  1. Quit your apps.
  2. In Finder, press ⇧⌘G and type ~/Library/Caches.
  3. Sort by size and look at the biggest folders. Each is named after an app or bundle ID.
  4. Move the folders you want to clear to the Trash. Delete contents of folders rather than the whole Caches folder.
  5. Restart, then empty the Trash.

A disk map such as DiskMac shows these folders with sizes and explains which app each belongs to, which makes step 3 much quicker.

Browser cache

System caches

/Library/Caches and the system’s private caches are managed by macOS. You rarely need to touch them. If you suspect a problem, starting up in Safe Mode clears some system caches automatically — on Apple silicon, hold the power button until startup options appear, select your disk, hold Shift and choose Continue in Safe Mode.

Developer caches — the big ones

If you write code, these usually dwarf everything else:

npm cache clean --force
brew cleanup --prune=all
pip cache purge
go clean -cache

Full list in the developer cache cheat sheet.

Used to CCleaner on Windows? Most of its features don’t apply on a Mac — see CCleaner for Mac alternatives.

What not to clear

FAQ

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

Generally yes, with apps closed. Apps recreate their caches. Expect some apps to be slower for their first launch afterwards.

Will clearing cache speed up my Mac?

No. It frees space; it doesn’t improve performance unless the disk was nearly full.

How often should I clear cache on Mac?

There’s no need for a schedule. Clear a cache when it is large or causing a problem.