Skip to content
← All guides

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 or try MacZentra free.

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 explains what the sandbox allows.

FolderHoldsTypical owner
~/Library/Containers/bundle.idOne app’s private data, caches and settingsA single sandboxed app
~/Library/Group Containers/group.nameData shared between related apps and extensionsAn 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 and Mail attachments 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 -15
du -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
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 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.

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, before touching anything.

A safe way to remove a container

  1. Quit the app and make sure it is not running in the menu bar.
  2. Open ~/Library/Containers and find the folder by name or bundle ID.
  3. Check the size and look inside Data to confirm what it holds.
  4. Drag the folder to the Trash, then restart the app and check that it works.
  5. Empty the Trash only after you are happy. See how to empty the Trash on a Mac.

Containers count towards the grey System Data bar, so they are part of the story in what System Data is. For the first step of any cleanup, use how to check storage on a 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. Hidden files such as .DS_Store are tiny and harmless, as explained in 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 →