Clear your Mac’s caches safely
Last updated December 1, 2026
Every app keeps a cache, and some grow to gigabytes. Here’s where they are on a Mac, how to clear an app’s or a browser’s cache without losing anything, and which caches are better left alone.
What clearing a cache does
A cache is a copy an app keeps so things open faster the next time: web pages, thumbnails, downloaded updates. Clear it and you get the space back, but the app builds it again as you use it, a little slower at first. So clearing pays off most for apps you no longer use, or for one cache that has grown far bigger than it should. It can also fix an app that keeps showing stale content.
It rarely makes a Mac faster, and macOS already removes some caches by itself when space runs low. That’s part of the purgeable space Storage settings shows.
See which caches are big
Your apps keep their caches in ~/Library/Caches. In Finder, choose Go > Go to Folder, type that path and press Return. To list the biggest, biggest last:
du -sh ~ /Library /Caches /* 2> /dev /null | sort -h | tail -15Each folder is named after its app, or after the app’s ID, like com.spotify.client. Apps from the Mac App Store keep theirs inside their own container instead, in ~/Library/Containers, under the app’s ID, then Data/Library/Caches.
Clear an app’s cache
Quit the app first, with Command-Q, so it isn’t writing to its cache while you delete it. Then drag the app’s folder in ~/Library/Caches to the Trash. The app makes a new one the next time it opens. Open the app, check it works as before, then empty the Trash.
Apps built on Electron, like Slack, Discord and VS Code, keep most of their cache in their own folder in ~/Library/Application Support, in folders named Cache, Code Cache and GPUCache. Delete only those. The rest of that folder holds your settings and sign-ins.
Clear a browser’s cache
Browsers have their own way to clear their cache that leaves your history, passwords and sign-ins alone.
Safari
In Safari > Settings > Advanced, turn on Show features for web developers. Then choose Develop > Empty Caches in the menu bar.
Chrome
In Settings > Privacy and security > Delete browsing data, pick All time, tick only Cached images and files, and click Delete data. Leave cookies unticked, or you’re signed out of every site.
Firefox
In Settings > Privacy & Security, find Cookies and Site Data and click Clear Data. Tick only the cache option, named Cached Web Content or Temporary cached files and pages depending on your version, and clear.
Caches to leave alone
/Library/Caches and /System/Library/Caches hold caches shared by every account on the Mac and by system services, and much of /System is protected. Clearing them with sudo, as some guides suggest, risks breaking things for little space, so leave them alone. The com.apple folders in your own Caches are Apple’s services. They’re usually small and rebuild straight away.
Don’t delete the whole Caches folder while apps are open, and think twice about the caches of apps you use every day. They come straight back, and an app that keeps downloaded media in its cache downloads it all again.
If you write code
The biggest caches on a Mac you build software on usually live outside ~/Library/Caches: Xcode’s build data, package managers’ downloads, Homebrew’s old installers and Docker’s disk image. The Xcode, package manager, Homebrew and Docker guides cover each one.
How Diskwise handles caches
Diskwise’s free scan lists the caches in ~/Library/Caches app by app, with what each one is and the space you’d get back. They’re Safe to clear. A cache whose app is open says Open, one whose app you haven’t opened in a month says “Unused since” and the day, and one whose app is gone says App removed, so you can see which cost nothing to clear. Apple’s own caches are left alone.
Optional auto clean clears an app’s cache only once you haven’t used the app in a while, and never the cache of an app you have open, so nothing you use gets slower.
Rather not do it by hand?
Diskwise finds what fills your Mac, from build data to caches, and clears what’s safe in one click. The scan is free.