Levo guides · Disk space

How to clear cache on a Mac, and which caches are safe to delete

User caches in ~/Library/Caches are safe to delete once the app that owns them is closed, and apps rebuild them as they need them. System caches in /Library/Caches and /System/Library/Caches are best left to macOS. The deletion that goes wrong is the one that removes a folder that only looks like a cache.

Browser and chat app caches listed by size in Levo
CacheWhereSafe to delete?
User app caches~/Library/CachesYes, with the app closed. They are rebuilt
Browser caches~/Library/Caches/Google/Chrome, com.apple.Safari, and each browser’s own settingsYes. Pages load slower once
Sandboxed app caches~/Library/Containers/<app>/Data/Library/CachesYes, one app at a time
Command-line caches~/.cache, npm, Homebrew, pipYes. Downloaded again when needed
System caches/Library/CachesMostly. Leave anything you don’t know
macOS’s own caches/System/Library/CachesNo. It is protected and macOS rebuilds it

What a cache is, and what comes back

A cache is a copy an app keeps so it doesn’t have to fetch or compute something twice: thumbnails, web pages, downloaded updates, compiled code. Deleting it costs you time, not data. The app builds it again, and the folder grows back. That means clearing a cache frees space only until it refills. Clear the ones that are large and rarely useful, not all of them every week.

How to clear the user cache yourself

  1. Quit the apps whose caches you are clearing. Deleting under a running app can make it misbehave.
  2. In Finder choose Go › Go to Folder (⇧⌘G) and enter ~/Library/Caches.
  3. Finder can’t sort folders by size here, so check sizes in Terminal first (see below), then open the big ones.
  4. Delete the contents of an app’s folder, not the folder itself and not the Caches folder.
  5. Empty the Trash.

To see which are big:

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

Command-line tools keep theirs elsewhere. Their own commands are cleaner than rm:

brew cleanup
npm cache clean --force
pip cache purge

Sandboxed apps and app-specific cleaners

Apps from the Mac App Store and many modern apps live in a container, so their cache is in ~/Library/Containers/<bundle id>/Data/Library/Caches. Finder won’t show these in a search, and macOS may ask for permission to open them. Chat apps, Photos tools and Safari’s extras are common examples. Where an app has its own clear-cache option, such as Settings › Advanced in Slack or Discord, prefer it. See How to clear the browser cache on a Mac and How to clear Slack, Discord, Teams and Spotify caches.

What breaks if you delete the wrong folder

Don’t run sudo rm -rf on anything under /Library or /System. Restarting the Mac clears the part of the system cache that matters, with no risk.

How Levo does it

Levo finds caches for you. Its live index covers your home folder, Library and hidden folders, so browser caches, chat app caches, package caches and the ones in sandboxed containers all appear in Ready to free grouped by kind, each with a size and when it was last used.

Your own AI agent, such as Claude Code, Codex or Gemini, checks each item: what it is, whether it comes back and whether it can go. The agent only reads. Levo does the deleting, skips anything open or changed in the last few minutes, and checks every item again before it goes. Select › Smartly ticks only the safe ones at your cleanup level, and you can untick any. To let Levo open sandboxed folders, give it Full Disk Access.

FAQ

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

Mostly yes, with the apps closed. The contents are rebuilt by the apps that own them. Delete the contents of each app’s folder, not the Caches folder itself.

Will clearing the cache make my Mac faster?

Not usually. A cache exists to make things faster, so clearing it makes the first use slower. It helps only when a cache is huge or corrupt.

Do I have to restart after clearing caches?

No. Quit the apps first, and a restart is only useful to clear what macOS holds for the system.

Where is the cache for a Mac App Store app?

Inside its container: ~/Library/Containers/ followed by the app’s bundle id, then Data/Library/Caches. Finder search doesn’t find it, so open it with Go to Folder.