Folder

Is ~/Library/Containers safe to delete on a Mac?

Be careful with ~/Library/Containers: each folder is a sandboxed app's private home with its data and settings, so delete only the container of an app you have already removed, and never the whole folder.

2 safe2 careful1 never

updated read 4 minfor macOS 14 Sonoma and later

The short answer

  1. 01

    Careful. Apple says macOS creates a container in ~/Library/Containers the first time a sandboxed app launches, and the app keeps its data there.

  2. 02

    Sandboxed apps write it, including Mac App Store apps and many Apple apps. Each container has its own Library with Application Support, Caches and Preferences.

  3. 03

    What you lose: that app's settings, caches and any documents it saved inside its container. For an app you still use, that can be your only copy.

  4. 04

    The check: du -sh ~/Library/Containers/* | sort -h. Delete one container by moving it to the Trash, only after the app is gone.

See its real size on your Mac. Hoardless measures this folder and previews the delete.Download free trial

What is the ~/Library/Containers folder?

~/Library/Containers holds one private home folder per sandboxed app. Apple's sandbox documentation says that when a sandboxed app launches for the first time, macOS creates a sandbox container on the file system in ~/Library/Containers and associates it with the app, which gets full read and write access to it.

Apple's File System Programming Guide adds that sandboxed apps keep all their Application Support, Cache, temporary directories and other related documents inside that container. So a container is not a cache. It is the app's whole Library.

What writes it and why does it grow?

Sandboxed apps, and only for themselves. That covers Mac App Store apps, which Apple's App Review Guidelines require to be sandboxed, and many of Apple's own apps. Inside a container you will find a Data folder that mirrors a home folder, with Data/Library/Application Support, Data/Library/Caches and Data/Library/Preferences.

  • Chat and mail apps keep message databases and downloaded media in their container.
  • Media and creative apps keep libraries, caches and offline downloads.
  • Removed apps leave their containers behind: dragging an app to the Trash does not remove its container.

Folder names are usually the app's bundle identifier, such as com.tinyspeck.slackmacgap for the App Store version of Slack. Some folders have generated names instead.

How big does ~/Library/Containers get?

There is no normal size; one messaging app can be most of it. Container contents are protected, so give Terminal Full Disk Access first (System Settings > Privacy & Security > Full Disk Access), then:

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

Lists the 15 largest containers, largest last. Removes nothing.

du -sh ~/Library/Containers/*/Data/Library/Caches 2>/dev/null | sort -h | tail -10

Shows how much of that is only cache, the part you can clear without losing data.

Is it safe to delete ~/Library/Containers?

The folder, never. A single container, only when you know what you lose.

WhatVerdictWhat you lose
Data/Library/Caches inside a container, app quitSafeThat app's cache. It rebuilds.
Container of an app you uninstalledSafeThe removed app's data, if you reinstall it later.
Container of an app you still useCarefulIts settings, sign-ins, caches and any documents saved inside. The app starts as if new.
Containers with generated namesCarefulUnknown. Leave them unless you know the owner.
The ~/Library/Containers folder itselfNeverEvery sandboxed app's data and settings at once.

Some apps save documents only inside their container. Before deleting the container of an app you still use, export what you need from the app itself or check that it syncs to iCloud.

How do I remove a container?

Use the app first. Many apps can clear their own cache or downloads in their settings, which frees space without resetting anything.

For a leftover of an app you removed:

  1. Make sure the app is uninstalled and not running.
  2. In Finder, choose Go > Go to Folder and type ~/Library/Containers. Finder shows many containers by app name rather than by bundle identifier.
  3. Drag that app's container to the Trash. Empty the Trash once you are sure.

What Hoardless does: it refuses to reclaim ~/Library/Containers as a whole, because it is a top-level folder of your home. It adds each container to its app's total in the Apps list, so an app's real size includes its data. A single container goes to the Trash only in a Confirm-tier plan you read first, raised to Destructive when its path table says the data does not regenerate (UTM virtual machines, for example), and every move is logged for undo. Docker Desktop's disk image inside its container is cleaned with Docker's own command instead.

What comes back and when?

A container comes back the next time its app launches, empty. Your old settings and data do not come back with it unless the app restores them from iCloud or its own servers. Containers of apps you removed stay gone.

See which app owns the space in Containers

The Hoardless Apps list adds each app's container to its bundle, caches, logs and web data, so you see what an app really takes, and Unused lists apps you have not opened in 90 days. Containers go to the Trash only in a plan you confirm, with an undo log; the Containers folder itself is never offered.

14-day full trial. macOS 14 or later.

Questions

What happens if I delete ~/Library/Containers?

Every sandboxed app loses its data and settings at once, and some keep documents only there. Never delete the whole folder; work one app at a time.

Can I delete the container of an app I uninstalled?

Yes, if you do not want its data back. Dragging an app to the Trash usually leaves its container behind, so these leftovers are a real source of space.

Why do some container folders have long random names?

Some containers are named with a generated identifier instead of a bundle identifier. Without knowing the owner, leave them alone.

Why does Terminal say Operation not permitted in Containers?

Container contents are protected. Give Terminal Full Disk Access in System Settings > Privacy & Security to read them. On macOS 14 and later, apps reading another app's container trigger a permission prompt.

Is it safe to delete the Caches folder inside a container?

Yes, with the app quit. Data/Library/Caches inside a container is that app's cache, which follows the same rule as ~/Library/Caches.