Help · Mac storage
How to clear the cache on a Mac.
You can clear most app and browser caches on a Mac safely: use each browser's own setting, and for other apps, quit the app and empty its folder in ~/Library/Caches. Caches are files apps keep so things load faster next time (web pages, thumbnails, downloaded updates), so they're rebuilt as you use your apps and the space partly comes back. Clearing them is a tidy-up, not a cure for a full disk.
Not sure which caches are safe? Pangalin Space Manager lists only the ones that are, one line per app. The scan is free and changes nothing.
Clear a browser's cache
Use the browser's own setting. It's the safest way, and you can keep your sign-ins.
- Safari: choose Safari › Settings › Advanced, tick Show features for web developers, then choose Develop › Empty Caches.
- Chrome: Chrome › Delete Browsing Data…, choose Cached images and files only, then Delete data.
- Firefox: Firefox › Settings › Privacy & Security › Cookies and Site Data › Clear Data…, tick only Temporary cached files and pages.
Clear app caches in your Library
- Quit the apps whose caches you're clearing. Clearing a cache while its app is open can confuse it.
- In Finder choose Go › Go to Folder… (⇧⌘G), type
~/Library/Cachesand press Return. - Switch to list view (⌘2), turn on View › Show View Options › Calculate all sizes, and sort by Size.
- Open a big folder named after an app you recognise (for example
com.spotify.clientorGoogle) and move what's inside it to the Trash. Leave the folder itself. - Restart your Mac, then empty the Trash.
Leave Apple's caches alone (folders starting com.apple.). Some, such as Photos' face and scene analysis, take hours to rebuild and keep your Mac busy while they do. Others protect you, like Safari's safe-browsing list. And never delete the Caches folder itself, or anything in /Library/Caches or /System.
When not to clear a cache
- While the app is open, including a menu-bar helper. Quit it first; otherwise leave its cache alone.
- When you rely on offline content. Some music, podcast, map and video apps keep downloads for offline use in or next to their cache, and you'd have to download them again.
- When clearing a browser's data would sign you out. Choose cached images and files only, not cookies or site data, unless signing out is what you want.
- Developer tools' caches. Use each tool's own command instead of deleting folders: see clearing developer caches.
Why the space comes back
That's what caches are for. A browser rebuilds its cache as you browse, a music app re-caches what you play. If one app's cache keeps growing to many gigabytes, check its settings for a cache size limit (Spotify, Steam and many video apps have one) rather than clearing it every week.
What about “system junk”?
Logs and temporary files are usually small, and macOS cleans them itself. Restarting clears much of the temporary space. If your disk is genuinely full, the big wins are usually elsewhere: see how to find large files and what to do when your disk is almost full.
Clear the caches that are safe, and only those.
Pangalin Space Manager's Caches list shows only caches that are safe to clear: installed apps' caches, browser caches and logs, one line per app, biggest first. It leaves Apple's own caches off on purpose, and tells you how much will rebuild. It won't clear the cache of an app that's open: quit the app first. You review everything before anything is cleared. Everything goes to the Trash first, caches included; the space comes back when you empty the Trash.
Free scan · The scan changes nothing · First 5 GB freed free, then $25 a year · Notarised by Apple · Apple silicon, macOS 13 or later