~/Library/Containers is not a cache folder, and that single fact settles most of the question. It holds the data of sandboxed apps: their settings, their databases, the media they downloaded. Deleting the container of an app you still use resets that app and takes its data with it. Deleting the container of an app you removed last year frees space and costs you nothing.
Main rule: match each container against the apps you still have. Remove the ones with no app behind them, and leave the rest alone.
Quick answer
- List the folders by size:
du -sh ~/Library/Containers/* | sort -h | tail -20. - Read the bundle identifier in each folder name and find the app it belongs to.
- Move to Trash only the containers whose app is gone from your Mac.
- For an app you still use, clear its stored media from inside the app instead.
- Treat
~/Library/Group Containerswith more care: several components share it. - Quit the app before touching its container, and keep the Trash for a day.
What a container is
macOS runs sandboxed apps inside a restricted home folder of their own. Every App Store app works this way, and so do many apps distributed outside it. That private home folder is the container.
Open one and the structure looks familiar:
~/Library/Containers/com.apple.Safari/
Data/
Library/
Application Support/
Caches/
Preferences/
Documents/
Desktop/ -> symlink to your real Desktop
Downloads/ -> symlink to your real Downloads
The app sees Data as its home directory. Inside it, Library holds what belongs to the app alone. The Desktop and Documents entries are symbolic links pointing at your real folders, which the app can only follow when it has permission to.
That detail answers the question people worry about most: removing a container removes the links, not the files they point to. Your documents stay where they always were.
What you lose when you delete one
The app-specific part is real data.
- account setup and sign-in state for that app;
- its settings and window state;
- the database it built, such as a mail index or a message history;
- media it downloaded and filed inside its own storage.
An app that finds its container missing starts as if freshly installed. For a note-taking app that syncs from a server, that costs you a re-download. For an app that kept everything locally, that costs you the content.
Which containers are safe to remove
The safe ones belong to apps that no longer exist on your Mac.
du -sh ~/Library/Containers/* | sort -h | tail -20
Take each large folder and read its name. com.company.appname tells you the vendor and the app. Then check whether that app is still in /Applications. When it is not, the folder is a leftover: an app was removed, its container stayed. Move it to Trash.
When the app is still installed, leave the container in place and deal with the size from inside the app. Messaging clients, mail clients, and browsers all expose settings for stored media and cache, and using them keeps your account setup intact.
Group Containers work differently
~/Library/Group Containers holds storage shared between components that declare the same app group: an app and its extension, an app and its widget, a suite and its helper. One folder can back several visible pieces of software.
The same rule applies, with a wider blast radius. Removing a group container for software you no longer have is fine. Removing one that a current app shares with its extension breaks the shared state for both, and the app usually cannot tell you why.
What lives in the biggest containers
A handful of names show up in almost every list.
- Messaging apps. Received photos and video pile up inside the container. Most of these apps have a storage screen that lets you clear old media without touching the account.
- Mail. Copies of downloaded attachments live in its container and grow quietly for years.
- Safari. Its cache sits inside
com.apple.Safarirather than in~/Library/Caches, which is why the browser looks absent from the cache listing. - Apps you tried once. Small folders, dozens of them, from software that has been gone for years. Individually irrelevant, collectively a tidy few hundred megabytes.
The order that keeps you out of trouble
- Sort the containers by size and look only at the top of the list.
- For each one, decide whether the app is still installed.
- Quit the app if it is running.
- Move only the orphan containers to Trash.
- Use the Mac for a day, then empty the Trash.
- For apps you keep, open their own settings and clear stored media from there.
Step 2 is the whole job. A container is worth removing when nothing is behind it, and worth keeping when something is.
Bottom line
Treat ~/Library/Containers as app data, because that is what it is. The question is never “is it safe to delete containers” in general. It is whether a specific container still has an app behind it. When the answer is no, move it to Trash. When the answer is yes, go into the app and clear what it stored, and leave its container where macOS put it.
Frequently asked questions
Is it safe to delete Containers on Mac?
Only for apps you no longer have. A container holds the data of a sandboxed app: its settings, documents it manages, and downloaded content. Removing the container of an installed app resets that app to a fresh state and takes its data with it. Removing the container of an app you deleted months ago frees space and costs nothing.
What is the ~/Library/Containers folder on Mac?
It is where macOS keeps the sandboxed home folder of each app that runs in a sandbox, which covers every App Store app and many others. Each subfolder is named after the app's bundle identifier and holds a Data folder that looks like a small home directory for that app alone.
Will deleting a container delete my documents?
The Desktop, Documents, and Downloads entries inside a container's Data folder are symbolic links to your real home folders, so removing the container removes the links and leaves your files where they are. What you do lose is the data the app itself stored inside its container: its settings, its database, and anything it downloaded there.
What is the difference between Containers and Group Containers?
A container belongs to one app. A group container in ~/Library/Group Containers is shared between apps that declare the same app group, which is how an app talks to its own extensions and widgets. Deleting a group container can break the shared state of several components at once, so it deserves more care than a single container.
How do I find containers left behind by apps I removed?
Compare the bundle identifiers in ~/Library/Containers against the apps you still have installed. A folder named after an app that is no longer in your Applications folder is a leftover, and it is safe to move to Trash. Sort the folder by size first, since most leftovers are small and only a few are worth the effort.
Why is one container several gigabytes?
Messaging apps keep received media inside their container, Mail keeps copies of downloaded attachments, and Safari keeps its cache there. In those cases you can often open the app's own settings and clear the stored media from inside, which is safer than deleting the container and losing the account setup with it.