How to Clear Cache on Mac, Safely
Caches make your Mac faster — until they quietly swell to several gigabytes and start working against you. Clearing them is one of the safest ways to reclaim space and fix odd glitches, as long as you clear the right ones. Here is what each cache is and exactly how to remove it.
What a cache actually is
A cache is a stash of temporary data an app keeps so it does not have to recompute or re-download something. A browser caches images so a page loads instantly the second time; a code editor caches indexes; macOS caches fonts and thumbnails. None of it is irreplaceable — by design, anything in a cache can be deleted and rebuilt on demand. That is exactly why clearing caches is safe, and why it is the first thing to try when an app misbehaves or your disk is suddenly full.
The four kinds of cache on a Mac
- User caches —
~/Library/Caches, one folder per app. This is the big, safe one to clear. - App-managed caches — data an app stores in its own container, like Spotify's offline songs or Xcode's build cache. Best cleared from inside the app.
- Browser caches — cached web pages and images, cleared from the browser's settings.
- System caches —
/Library/Cachesand/System. Leave these alone. macOS manages them, and clearing them by hand can cause more problems than it solves.
Clear the user cache in Finder
This is where the most reclaimable space lives.
- Quit the apps you are about to clear (a running app may rewrite its cache immediately).
- In Finder, press
Cmd+Shift+G, paste~/Library/Cachesand press Return. - Sort by size (View → as List, then click the Size column). The biggest folders are usually browsers, chat apps and creative tools.
- Open a folder and move its contents to the Trash, not the named folder itself — that keeps the structure apps expect intact.
- Empty the Trash to actually reclaim the space.
~/Library/Caches folder itself, and never touch /System or the root /Library.Clear the browser cache on Mac
Browsers are often the single largest cache on the machine, so clearing the browser cache on a Mac is usually the fastest win.
Safari
Enable the Develop menu in Safari → Settings → Advanced → Show features for web developers, then choose Develop → Empty Caches. To clear cookies and history too, use Safari → Settings → Privacy → Manage Website Data.
Chrome and Edge
Open Settings → Privacy and security → Delete browsing data, pick a time range of All time, tick Cached images and files only (leave passwords unticked), and confirm. This alone often frees several gigabytes.
Firefox
Settings → Privacy & Security → Cookies and Site Data → Clear Data, then tick Cached Web Content.
Clear developer caches (the heaviest of all)
If you write code, the build caches dwarf everything else. The safe, high-impact one is Xcode's DerivedData:
rm -rf ~/Library/Developer/Xcode/DerivedData/*
It regenerates the next time you build. Other big rebuildable caches: ~/Library/Caches/Homebrew, the npm cache (npm cache clean --force) and CocoaPods (~/Library/Caches/CocoaPods). Each is safe to clear because the tool repopulates it automatically.
What about the system cache on Mac?
People often search for how to clear the system cache on a Mac, but this is the one place to be careful. The true system caches in /Library/Caches and /System are managed by macOS, and deleting them by hand can break apps or force long rebuilds at the next boot. macOS already clears what it safely can during a restart, so the best way to refresh the system cache on a Mac is simply to reboot. Leave those folders alone and focus on the user, app and browser caches above, where all the safe, reclaimable space actually is.
The faster, safer way to delete cache on Mac
Doing all of this by hand means knowing every path and being careful not to delete the wrong folder. Diskito scans your drive, groups every cache — user, app, browser and developer — into one clearly labelled place, shows you how much each is holding, and moves what you select to the Trash so it is fully reversible until you empty it. No Terminal, no risk of touching a system folder. If you want the full cleanup beyond caches, see our guide on how to free up disk space on Mac.
Clear every cache in one place
Diskito finds your caches and build junk automatically, shows what each one holds, and Trashes only what you pick — reversible until you empty it. Free to visualise, with free cleanups to try.
FAQ
Clearing user and browser caches is safe — they rebuild automatically. Quit the relevant app first, leave the system caches in the root /Library and /System alone, and never delete a folder you do not recognise.
User caches are in ~/Library/Caches. In Finder press Cmd+Shift+G and paste that path. System caches live in /Library/Caches and /System, which you should generally leave alone.
No. Caches are temporary, rebuildable data, not your documents. Clearing a browser cache does not remove bookmarks or passwords, though it can sign you out of some sites and make the next load slightly slower.
Generally you should not delete the system caches in /Library/Caches and /System by hand — it can break apps. macOS clears what it safely can on restart, so the safest way to refresh the system cache is to reboot. Focus your cleanup on the user, app and browser caches.