If you only want to clear caches, follow how to clear the cache on a Mac instead. This guide answers a different question: you have opened ~/Library, found a big folder, and want to know whether deleting it loses anything. Every app keeps its caches, its data and its settings here. Some folders rebuild themselves; others are your mail, your messages and your passwords.
Find the big folders
Finder hides ~/Library. Open it with Go › Go to Folder… (⇧⌘G) and type ~/Library, or hold Option in the Go menu. Terminal is faster at sizes:
du -sh ~/Library/* 2>/dev/null | sort -h | tail -12 # its biggest folders
If a line says “Operation not permitted”, give Terminal Full Disk Access — see Full Disk Access on macOS; without it the totals look too small. If Storage settings blames System Data and ~/Library does not explain it, read “System Data” on a Mac takes tens of GB and purgeable space and Time Machine snapshots.
What lives in ~/Library
- Caches — one folder per app, named after the app or its bundle id (
com.spotify.client,Google/Chrome). Files the app downloaded or computed so it doesn’t have to again. Safe to delete with the app closed; the app rebuilds them. - Logs and Logs/DiagnosticReports — app logs and crash reports. Safe to delete. Details: ~/Library/Logs and crash reports.
- Application Support — the app’s real data: libraries, profiles, databases, save games. Not a cache.
- Containers and Group Containers — the data of App Store and sandboxed apps (Office, Slack, Notes…). Only the
Data/Library/Cachesfolder inside each container is cache; the rest is documents and settings. - Preferences — the
.plistsettings files. Tiny; deleting one resets that app. - Keychains — your saved passwords and certificates.
- Mail, Messages, Mobile Documents (iCloud Drive), CloudStorage (Dropbox, Google Drive, OneDrive) — your mail, messages and synced files.
- Developer — Xcode build products, simulators and device support: often the biggest folder on a developer’s Mac, and mostly regenerable; see Xcode disk space.
Photos keeps its library in ~/Pictures/Photos Library.photoslibrary, not in ~/Library; see the Photos library taking up space.
Clearing ~/Library/Caches safely
Quit the app, then delete its folder; it starts with an empty one next time:
du -sh ~/Library/Caches/com.spotify.client
rm -r ~/Library/Caches/com.spotify.client # after quitting Spotify
Don’t delete all of ~/Library/Caches in one go while you’re logged in. Running apps keep files open there, and a few folders are not plain caches: com.apple.bird and CloudKit hold iCloud sync state (a wipe forces a full re-sync), com.apple.nsurlsessiond holds downloads still in progress, and pypoetry/virtualenvs holds Poetry’s environments. The step-by-step for every kind of cache, browsers and chat apps included, is in how to clear the cache on a Mac.
A cleared cache refills as you use your apps. That is normal: if the space vanishes again within days, the real cause is elsewhere in the table below.
/Library/Caches and /System
/Library/Caches (no tilde) is shared by all users and changing it needs admin rights. It is usually small, macOS manages it, and a mistyped sudo rm there can damage the system, so look with du but don’t wipe it. /System/Library/Caches and everything under /System are protected by System Integrity Protection: macOS won’t let you change them, and you don’t need to.
The same goes for /private/var/folders: it holds each user’s temporary files and some system caches. Don’t delete it by hand; a restart empties its temporary part.
Safe to delete, or not
| Folder | What it is | Safe to delete? |
|---|---|---|
~/Library/Caches/<app> |
the app’s cache | Yes, with the app closed |
~/Library/Containers/<app>/Data/Library/Caches |
a sandboxed app’s cache | Yes, with the app closed |
~/Library/Logs, Logs/DiagnosticReports |
logs and crash reports | Yes |
~/Library/Developer/Xcode/DerivedData |
Xcode build products | Yes, Xcode rebuilds them |
~/Library/Application Support/<app> |
the app’s data | Only for an app you removed |
~/Library/Containers, Group Containers (the rest) |
documents and settings of sandboxed apps | No |
~/Library/Keychains |
passwords and certificates | Never |
~/Library/Mail, ~/Library/Messages |
your mail and messages | No — clean them from Mail and Messages |
~/Library/Mobile Documents, ~/Library/CloudStorage |
iCloud Drive and cloud sync folders | No — remove downloads from Finder instead |
~/Pictures/Photos Library.photoslibrary |
your photos | No — delete photos inside Photos |
/Library/Caches |
caches shared by all users | Leave it |
/System, /private/var/folders |
macOS itself and temporary files | Never by hand |
For Mail and Messages, see Mail attachments and Messages taking up space. For the data of apps you already deleted, see uninstalling apps completely.
How CleanMate does it
CleanMate 1.12 (see all macOS features) only works inside your user account, with no admin password and no helper, and it never touches Keychains, Mail, Messages, Photos, Documents or iCloud Drive.
- Smart Scan › System Junk › User caches lists what is in
~/Library/Cachesand clears it, skipping the cache of any app that is running, files another process has open, iCloud and sync state, downloads in progress and Poetry’s environments. Caches are deleted, not moved to the Trash, because the apps rebuild them. - With Full Disk Access, App Store app and app group caches covers the
Cachesfolders inside Containers and Group Containers, never Apple’s and never a running app’s. Old logs, crash reports and temporary files are only removed past the age you set. - Space Lens draws your home folder,
~/Libraryincluded, by size, so you can see in seconds which folder is the problem. It moves your own files and folders to the Trash with Undo, but nothing inside~/Library: what lives there is cleaned only by the Smart Scan items that know what it is. - Uninstaller › Leftovers lists the Application Support, caches, preferences and containers of apps you already deleted, never ticked; they go to the Trash, with Undo (⌘Z).
From Terminal, cleanmate space ~/Library prints the same sizes as Space Lens, and cleanmate scan shows what Smart Scan would clean; both change nothing. The icon cache and Quick Look’s thumbnails are caches too, but they are rebuilt with commands, not by deleting folders: see fixing wrong icons and blank Quick Look previews. More in the cleanmate command and AI agents. Download CleanMate.
FAQ
Is it safe to delete ~/Library/Caches? Folder by folder, with the app closed, yes: apps rebuild their caches. Deleting the whole folder while logged in can break iCloud sync and running apps, so don’t do it in one command.
Why does Finder show the disk almost empty while Storage says it’s full? Finder doesn’t show ~/Library, other users’ folders, local snapshots or purgeable space. du -sh ~/Library/* and sudo du -xhd 1 /System/Volumes/Data show where the space is.
Can I delete ~/Library/Containers? No. Each container is a sandboxed app’s whole data: documents, settings, sometimes the only copy. Only Data/Library/Caches inside a container is cache.
Will deleting caches speed up my Mac? Rarely. It frees space; the apps are a little slower while they rebuild the cache. Clear caches when you need the space, not as routine maintenance.
What about /Library/Caches? It belongs to the system and all users, it is usually small, and changing it needs admin rights. Leave it to macOS.

