All guides

Storage

How to clear cache on a Mac safely

Caches are copies of data kept for speed. Because they can be rebuilt, they are the safest place to start when you need space.

How to clear cache on a Mac: quick steps

Quit the apps you are about to clean. In Finder choose Go → Go to Folder, type ~/Library/Caches, sort the folders by size and move the contents of the large ones to the Trash. Empty the Trash, then restart your Mac. Do not delete the folders themselves, and leave /Library/Caches to macOS.

How to clear application cache on Mac

Each app stores its cache in its own folder inside ~/Library/Caches, usually named after the app or its developer. Quit the app, open its folder and move the contents to the Trash. The app rebuilds the cache the next time you use it, so the first launch can be a little slower.

How to clear Safari cache on Mac

In Safari open Settings → Advanced and turn on Show features for web developers. Then choose Develop → Empty Caches (Option + Command + E). To remove stored website data as well, use Settings → Privacy → Manage Website Data.

How to clear Chrome cache on Mac

In Chrome press Command + Shift + Delete, choose a time range and tick Cached images and files. Leave Cookies unticked if you do not want to be signed out of websites.

What a cache is

When an app downloads an image, compiles code or indexes a file, it often keeps the result so the next launch is quicker. That stored copy is a cache. Deleting it does not delete your documents; the app simply makes the data again when it needs it, which can make the first launch afterwards slower.

Where caches live

  • User caches in ~/Library/Caches, with one folder per app or service.
  • System caches in /Library/Caches. Leave these to macOS; it manages them and recreates them after a restart.
  • Browser caches inside each browser’s own settings, cleared from the browser’s privacy options.
  • Developer caches from Xcode, Homebrew, npm, pip and similar tools.

Clearing user caches

Quit the apps first. In Finder choose Go, then Go to Folder, type ~/Library/Caches and open it. Sort by size, then move the contents of large app folders to the Trash rather than deleting the folders themselves. Do not remove folders for apps you are not sure about; the app is the owner of its cache and will recreate it.

Browser caches

Use Safari’s Settings, then Privacy, or the Clear browsing data option in Chrome and Firefox. Clearing cached images and files frees space. Clearing cookies as well signs you out of websites, so choose only what you want.

Developer caches

  • Xcode keeps build output in ~/Library/Developer/Xcode/DerivedData. It is safe to delete and is rebuilt on the next build.
  • Old iOS simulators and device support files can be several gigabytes.
  • Homebrew: brew cleanup removes old downloads and versions.
  • npm: npm cache clean --force, and pip: pip cache purge.

What not to delete

Do not empty Application Support folders thinking they are caches, and do not delete cache folders that belong to apps that are currently running. Never remove system folders to save space. If an app starts to behave oddly after you clear its cache, restart it once; if that does not help, reinstalling it restores a clean state.

Does clearing caches speed up a Mac?

Not by itself. Caches exist to make things faster, so removing them can make the next launch slower. The real gain is free disk space. A Mac that is short on space can slow down, because macOS needs room for temporary files and memory swapping, so clearing space can help indirectly.

A tidy way to do it

  1. See which caches are large before touching anything.
  2. Clear the biggest rebuildable ones first.
  3. Move items to the Trash, check that everything works, then empty it.

sysZivo’s Logs & Caches page shows every log and cache on the Mac with its size, and Quick Wins groups package caches and build output by how safe they are to remove, so you can choose with the numbers in front of you.

Clearing cache on Mac and System Data

Caches are one of the largest parts of the “System Data” number in Mac storage settings. If you are not sure what else is in it, read what System Data is on a Mac. To see the cache sizes on your own Mac before you clear anything, use the Logs & Caches view in sysZivo; it is free to scan.

Questions people ask

How do you clear the cache on a Mac?

Quit the app, open Finder, choose Go → Go to Folder, type ~/Library/Caches, and move the contents of the large folders to the Trash. Empty the Trash and restart. Browser caches are cleared from the browser’s own privacy settings.

How to clear caches on a Mac without breaking anything?

Only clear caches that apps can rebuild, quit the app first, delete the contents rather than the folder, and leave system folders alone. Move items to the Trash and check that your apps still work before you empty it.

Is it safe to clear cache on a Mac?

Yes for user and browser caches: the app rebuilds them. The only cost is a slower first launch. It does not delete your documents. Do not remove Application Support folders, because they hold real app data.

Does clearing cache make a Mac faster?

Not by itself. Caches exist to speed things up. The gain is free disk space, and a Mac that is short on space can slow down because macOS needs room for temporary files and swap.

Try it on your Mac

sysZivo shows the detail; you make the call. Free to start; Pro is €19.99 a year.

Download for Mac

All sysZivo guides are original writing by the sysZivo team. They contain no copied text and no third-party images. Apple, macOS, Mac and other product names belong to their owners and are used only to describe compatibility. See Brand & trademarks.