A Mac whose free space keeps shrinking — while Settings counts it as System Data — is usually a cache issue: apps write cached files to disk so they don’t have to download or recompute things, and almost none of them clean up after themselves. Caches are safe to delete once the app is closed, and they come back as the app is used — that is normal. This guide shows where macOS keeps them, the commands that clear them from your user account without needing admin rights, and the few folders that are not worth their space.
First, sizes:
df -h / # free space on your startup disk
du -sh ~/Library/Caches 2>/dev/null # total of the per-app caches below
du -sh ~/Library/Caches/* 2>/dev/null | sort -h | tail -15
du -sh /Library/Caches 2>/dev/null # the system-wide folder; reading usually works; deleting there needs admin rights
If Terminal says “Operation not permitted”, it lacks Full Disk Access (System Settings › Privacy & Security › Full Disk Access); see Full Disk Access on macOS.
User caches: ~/Library/Caches
This is the big one, and it belongs to your user account: one folder per app, keyed by bundle id.
Quit the app whose cache you want to clear, then delete that folder. The app rebuilds an empty one on the next launch:
# after quitting the app (folder name from the du listing above)
rm -rf ~/Library/Caches/Firefox
Don’t delete the whole ~/Library/Caches folder at once. A handful of the folders inside are not plain caches:
com.apple.bird,CloudKit,com.apple.homed— iCloud and sync state; wiping them forces a re-sync of everything.com.apple.nsurlsessiond— downloads still in flight.pypoetry/virtualenvs— Poetry’s virtual environments. Real work, not cache, even though the path says Caches.
Deleting a closed app’s cache loses nothing permanent, but you will see a price right away: the app re-downloads or re-renders what it cached, so the first hours feel slower and your network traffic goes up.
System caches: /Library/Caches
The system-wide folder is smaller and shared by all users. It needs admin rights to change, because files there can belong to the system or other users. Most of it is small and macOS manages it on its own; in a Terminal that does rm -rf as root, a typo does damage you can’t undo. Look at it with du, but wiping it in bulk is not worth the risk. The same goes for /System/Library/Caches: leave it alone.
Browser caches
Each browser keeps its cache under ~/Library/Caches (Safari: com.apple.Safari, Chrome: Google/Chrome) and caches of other kinds in its own data folder. Clearing them inside the browser is the honest way, because you choose what history goes with them:
- Safari: Safari › Clear History… (periods up to “all history”).
- Chrome, Edge, Brave, Arc: Clear browsing data (Ctrl/⌘+Shift+Delete) with “Cached images and files” ticked; untick passwords and autofill.
Read browser data: cache, history, cookies for what each browser stores and where.
App and chat-app caches
Chat apps are the usual repeat offenders: Slack, Discord, Teams, Notion and friends are Electron apps that keep an image cache, media cache and GPU cache that grows for months. They cache in two places at once — under ~/Library/Caches/<bundle id> and inside their own data folder under ~/Library/Containers/…/Data/Library/Caches (sandboxed) — which is why deleting one of the two barely moves the needle. The safe commands and what to keep there are in chat app caches on a Mac. Video editors and sync apps keep big caches outside ~/Library/Caches: Adobe Media Cache, Final Cut Pro and iMovie and Google Drive, Dropbox and OneDrive.
DNS cache
Not a disk-space fix (it is a few MB at most) but a common “why won’t this site load” fix. Flushing it needs admin rights:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
What not to delete
- ~/Library/Containers — the data of sandboxed apps: documents, settings, everything. Only
Data/Library/Cachesinside each container is cache. - ~/Library/Application Support — settings, profiles, mail databases, save files. Deleting an app’s folder here is uninstalling it as far as your data is concerned.
- Keychain Data — your passwords. Never. Every folder of
~/Library, safe or not: which ~/Library folders are safe to delete. /Library/Cachesin bulk, as above: admin rights, small win, real risk of a typo.
The cache comes back — that is by design
Clearing cache reclaims space for a while, then the apps you use refill it. If the cache keeps refilling quickly and the space is still short, the fix is different: files nobody has touched in months (old downloads, installers, logs). macOS lumps almost everything here into System Data; see “System Data” on a Mac takes tens of GB.
How CleanMate does it
CleanMate cleans only inside your user account — no admin password, no root — and only files that are regenerated on demand (see all macOS features). The Smart Scan page covers the scan rules and safety checks in detail:
- Smart Scan › System Junk › User caches: the folders under
~/Library/Caches, skipping the caches of apps that are running, files any process has open, the iCloud/sync and in-flight-download folders above, and Poetry’s virtualenvs. Cleared, not moved to the Trash — they are rebuilt on demand. - With Full Disk Access, it also lists Sandboxed app caches (the
Data/Library/Cachesfolder inside app containers) and App group caches, again never Apple’s own containers and never a running app’s. - Smart Scan lists the cache of every installed browser as its own item — skipped while that browser is running — and gives chat and AI apps their own items too.
- Maintenance clears cache-like system state without a password: rebuild the Launch Services database, Quick Look, and the Dock and Finder caches, and clear the font and app-icon caches.
- It does not flush the DNS cache: every command CleanMate runs needs zero admin rights. Use the one above when name resolution misbehaves.
Not sure which folder eats what? Space Lens draws your home folder (and ~/Library) by size; download CleanMate.
Wrong or blank icons and blank Quick Look previews are a cache problem of their own, with fixes of their own: wrong icons, Quick Look and Open With on a Mac.
Recent files, shell history and other traces are in delete recent files, browser history and app traces.
FAQ
Is it safe to delete ~/Library/Caches? Folder by folder, after quitting the apps, yes: every folder is rebuilt on demand. Skip the iCloud/sync ones and Poetry’s virtualenvs, and don’t run it as sudo.
Why does my disk look the same after clearing cache? Some caches refill within days — they are working as intended. The space worth reclaiming is files that exist once and stay: old downloads and installers, logs, developer junk.
Does clearing cache delete passwords or settings? No. Those live in Keychain, Preferences and Application Support, which this guide tells you not to touch.
Do I need Full Disk Access to clear caches? For manual du/rm in Terminal, no: most of ~/Library/Caches is readable without it. Sandboxed app containers and group containers are protected, and CleanMate needs it for those caches.

