> Library containers on Mac explained: what ~/Library/Containers and Group Containers hold, how to see sizes, and when deleting an app container is safe.

[← All guides](https://maczentra.com/blog)System Data

# Library Containers on Mac: What They Are

The MacZentra team · Updated Dec 1, 2026 · 6 min read

The Library containers on a Mac are folders in `~/Library/Containers` and `~/Library/Group Containers` where sandboxed apps keep their own data: settings, caches, databases and sometimes your documents. They can grow large, but you should only remove one when the app is gone or when you are sure its data is expendable. This guide shows how to check sizes and when deleting is reasonable. MacZentra's Junk Cleaner lists caches and logs with their sizes, and everything you remove goes to the Trash. It replaces hunting through hidden Library folders yourself. See [Junk Cleaner](https://maczentra.com/features#clean) or [try MacZentra free](https://maczentra.com/).

## What are Containers and Group Containers?

A sandboxed app is limited to its own area of the disk. Apps from the Mac App Store run in a sandbox, and so do many other apps. Each one gets a folder in `~/Library/Containers`, usually named after its bundle ID, such as `com.example.notes`. Inside is a `Data` folder that acts like a small home directory for that app, with its own `Library`, `Documents` and `tmp`.

`Group Containers` is the shared version. Apps from the same developer, or an app and its widgets and extensions, can share one folder there. The names often start with a team ID or the word `group`. The [App Store sandbox guide](https://maczentra.com/blog/mac-app-store-sandbox-what-changes) explains what the sandbox allows.

Folder | Holds | Typical owner |
`~/Library/Containers/bundle.id` | One app’s private data, caches and settings | A single sandboxed app |
`~/Library/Group Containers/group.name` | Data shared between related apps and extensions | An app family or an app and its widgets |

## What is inside a container?

Open one in Finder and you will find the same names you know from your home folder. The big ones are usually in `Data/Library/Application Support` (databases, downloaded content, project files) and `Data/Library/Caches` (things the app can rebuild). Messaging, mail, notes, music and video apps are common heavy hitters, because they store attachments and offline copies.

Apple’s own apps use containers too. Folders that start with `com.apple.` belong to built-in apps, and some of them hold your actual data. If your Messages or Mail folders are big, see [Messages taking up space on Mac](https://maczentra.com/blog/messages-taking-up-space-on-mac) and [Mail attachments on Mac](https://maczentra.com/blog/mail-attachments-taking-up-space-on-mac) for the safer way to trim them.

You can also spot the owner of a container from its name. A bundle ID such as `com.vendor.appname` reads from the company to the app. Group Container names often start with a short team ID instead, which is harder to read. If a name does not tell you anything, open the folder and look at what is inside, or check the app list in **Applications** for something from the same vendor. Do this before you decide a folder is orphaned.

## How to see container sizes

In Finder, choose **Go → Go to Folder** and type `~/Library/Containers`. To list sizes instead, this command only reads:

Terminal

```
du -sh ~/Library/Containers/* 2>/dev/null | sort -h | tail -15du -sh ~/Library/Group\ Containers/* 2>/dev/null | sort -h | tail -15
```

You get the 15 biggest folders at the bottom of each list. If Terminal reports permission errors for some folders, that is macOS protecting app data. Recent versions can also ask whether Terminal may access data from other apps. You can decline and still use the sizes you got.

![MacZentra Uninstaller listing apps with the size of their leftover files](https://maczentra.com/guides/uninstaller.webp)The Uninstaller lists apps with the space they use, which makes it easy to spot a big container tied to an app you no longer open.

## When deleting a container is reasonable

- **The app is already uninstalled.** Dragging an app to the Trash leaves its container behind. If you are sure you will not reinstall, the leftover folder is dead weight. [How to uninstall apps on a Mac](https://maczentra.com/blog/uninstall-apps-on-mac) covers the full removal.
- **You want to reset one misbehaving app** and its data is also stored online or exported elsewhere.
- **The container is mostly cache.** If the space is in `Data/Library/Caches`, clear that subfolder instead of the whole container. See [what is safe in Library Caches](https://maczentra.com/blog/library-caches-safe-to-delete).

## When you should leave it alone

- **It belongs to a built-in Apple app** (`com.apple.`). Use the app’s own settings to reduce its data.
- **The app is still installed and you need what is in it:** notes, saved games, local databases, projects, offline downloads you cannot fetch again.
- **It is a Group Container shared by several apps.** Removing it can affect apps you still use, so identify every owner first.
- **You do not recognise the name.** Search the bundle ID online in your browser, or check [which apps you no longer use](https://maczentra.com/blog/find-unused-apps-taking-space-mac), before touching anything.

## A safe way to remove a container

- Quit the app and make sure it is not running in the menu bar.
- Open `~/Library/Containers` and find the folder by name or bundle ID.
- Check the size and look inside `Data` to confirm what it holds.
- Drag the folder to the Trash, then restart the app and check that it works.
- Empty the Trash only after you are happy. See [how to empty the Trash on a Mac](https://maczentra.com/blog/how-to-empty-trash-on-mac).

Containers count towards the grey System Data bar, so they are part of the story in [what System Data is](https://maczentra.com/blog/system-data-on-mac). For the first step of any cleanup, use [how to check storage on a Mac](https://maczentra.com/blog/how-to-check-storage-on-mac).

Logs and crash reports are a different kind of app leftover, and they are much easier to review: see [how to delete log files on a Mac](https://maczentra.com/blog/delete-log-files-on-mac). Hidden files such as `.DS_Store` are tiny and harmless, as explained in [what are .DS_Store files](https://maczentra.com/blog/what-are-ds-store-files).

One more habit helps: before you remove a container for an app that is still installed, export or back up anything you care about from inside the app. Many apps have an export or backup option in their menus, and it takes a minute. After that, the container becomes a cache you can rebuild rather than the only copy of your work.

## Questions people ask

### What is the Containers folder in the Mac Library?

It is where sandboxed apps keep private data. Each app gets its own folder, named after its bundle ID, with a `Data` folder inside.

### Is it safe to delete ~/Library/Containers?

Not as a whole. Some containers hold data you may want, and macOS apps expect the folder to exist. Review one app at a time.

### What are Group Containers on a Mac?

They are shared folders for apps from the same developer, and for an app and its widgets or extensions. Treat them with extra care.

### Why is a container huge for an app I deleted?

Removing an app does not always remove its container. If you will not reinstall it, move the leftover folder to the Trash.

### How do I find the Library folder on a Mac?

In Finder, hold **Option** while opening the **Go** menu to see Library, or use **Go → Go to Folder** and type `~/Library`.

## Everything MacZentra can clean

Treemap and Sunburst disk maps, a duplicate finder, Developer Junk, a complete app uninstaller and more, in one native storage cleaner for Mac that’s 15.4 MB.

[Explore all features →](https://maczentra.com/features)

## Related guides

[![Cover image for mds_stores on Mac: Spotlight Index, Disk and CPU Use](https://maczentra.com/thumbs/systemdata.webp)Stop mds_stores eating diskSystem Data · 4 minmds_stores on Mac: Spotlight Index, Disk and CPU UseWhat mds, mds_stores and mdworker are, where the Spotlight index lives, why they use disk and CPU, and how to check or rebuild the index with mdutil.](https://maczentra.com/blog/mds-stores-spotlight-index-mac)[![Cover image for APFS Local Snapshots: Hidden Space in System Data](https://maczentra.com/thumbs/snapshots.webp)The space snapshots hideSystem Data · 5 minAPFS Local Snapshots: Hidden Space in System DataLocal Time Machine and macOS update snapshots can hold tens of gigabytes. How to list them, which to delete, and why "purgeable" space isn't free yet.](https://maczentra.com/blog/apfs-local-snapshots)[![Cover image for iCloud Optimize Mac Storage Without Losing Files](https://maczentra.com/thumbs/icloud.webp)Free Mac space with iCloudSystem Data · 6 miniCloud Optimize Mac Storage Without Losing FilesTurn on Optimize Mac Storage or use Remove Download to clear local copies of iCloud Drive files. Nothing is deleted from iCloud, and files re-download on open.](https://maczentra.com/blog/icloud-optimize-storage-mac)[![Cover image for Best Mac Storage Cleaners 2027: Compared & Ranked](https://maczentra.com/thumbs/editorial-best-mac-storage-cleaners.webp)Compare before you cleanCheck storage · 9 minBest Mac Storage Cleaners 2027: Compared & RankedMac storage cleaners and disk space analyzers compared by price, size, scan speed and licence. One-time, subscription and free options side by side.](https://maczentra.com/blog/best-mac-storage-cleaners)

Source: https://maczentra.com/blog/library-containers-on-mac
