mediaanalysisd e5bundlecache huge on Mac: safe to delete?
mediaanalysisd's e5bundlecache can grow past 100 GB. Find it, delete the contents (not the folder), restart, and stop it coming back. Covers Spotlight too.
TroubleshootingUpdated 6 min read
On this page
Your disk is nearly full, System Data is far bigger than you can explain, and the big folder is com.apple.mediaanalysisd/data/library/caches/com.apple.mediaanalysisd/com.apple.e5rt.e5bundlecache. This page covers how to confirm that, how to clear it, and how to keep it from coming back. A short section at the end covers a separate Spotlight problem.
Why it happens
mediaanalysisd is a macOS background process that analyzes media, such as photos, on your Mac. The e5bundlecache folder holds compiled model bundles it generates for that work. Apple doesn't document the folder or a size limit, and as far as we know it hasn't published a fix for the growth.
What we have is user reports, not an Apple statement. One M1 Mac mini on macOS Sequoia 15.2 lost 118 GB to this folder, spread over 1,756 bundles. People on a community forum called it a known mediaanalysisd bug and said the contents are safe to delete, as long as you delete them rather than move them, and then restart. We haven't confirmed this on a current macOS release.
Likely causes, most common first:
- A runaway cache bug in
mediaanalysisd. This is what the reports describe. It is not confirmed by Apple. - Heavy media analysis. Photos face recognition and Apple Intelligence features feed the process, according to the same reports. A large photo library probably makes it worse.
- Something else entirely. If the folder doesn't exist or is small, your space went elsewhere (see the table below).
Step 1: Confirm this folder is the big one
The full path, relative to your home folder:
~/Library/Containers/com.apple.mediaanalysisd/Data/Library/Caches/com.apple.mediaanalysisd/com.apple.e5rt.e5bundlecacheTo check the size in Terminal (this only reads sizes and changes nothing):
du -sh ~/Library/Containers/com.apple.mediaanalysisd/Data/Library/Caches/com.apple.mediaanalysisd/com.apple.e5rt.e5bundlecacheIf it says "No such file or directory", the problem is elsewhere. If it says "Operation not permitted", macOS is protecting another app's container; use the Finder method below.
Find it with a disk map
Any disk-usage map works. In Gigabroom:
- Choose File ▸ Choose Folder to Scan… (⌘O), pick your home folder and click Scan.
- In the sunburst, click Library, then Containers, then keep drilling into
com.apple.mediaanalysisd. Hover a shape to see its name and size. - Press ⌥⌘L (Map ▸ Item List) if you prefer a sorted list of the current folder's items.
- Right-click the folder and choose Reveal in Finder.
You can also open System Data (⌘8). Its breakdown has a Containers row with an Open in Disk Map button. If the map shows "Some folders couldn't be read", grant Full Disk Access (see Full Disk Access and other permissions) and rescan.
Step 2: Delete the contents, not the folder
In Finder
- Press ⇧⌘G (Command-Shift-G) to open Go to Folder.
- Paste the path above and press Return.
- Press ⌘A to select everything inside the folder.
- Hold Option and choose File ▸ Delete Immediately….
If you prefer a safety net, press ⌘⌫ to move the selection to the Trash. The space only comes back once you empty the Trash.
In Terminal
This permanently deletes the files.
rm -rf ~/Library/Containers/com.apple.mediaanalysisd/Data/Library/Caches/com.apple.mediaanalysisd/com.apple.e5rt.e5bundlecache/*It removes everything inside the cache folder and leaves the folder in place. There is no undo, but it's a cache. If the folder is already empty, zsh prints "no matches found", which is harmless.
Step 3: Restart and check
Restart your Mac, as the reported fix says. Then check free space in System Settings ▸ General ▸ Storage. Storage figures can take a few minutes to update.
Step 4: Stop it coming back
If the folder is large again days or weeks later, turn off what feeds it:
- Apple Intelligence: open System Settings, search for "Apple Intelligence", and switch it off.
- Photos face recognition: the reports name this too. We can't confirm one switch that is the same on every macOS version, so we're not giving a click-path.
Also check for a macOS update. We found no confirmation that a later release fixed the growth, but being on an old point release is the first thing Apple Support would ask about.
To catch a refill early, rescan your home folder in Gigabroom every few days and open What Grew (⌘6). It compares two scans and lists the folders that grew most. It stores folder sizes about 4 levels deep and leaves out changes under 10 MB, so it may point at the com.apple.mediaanalysisd container rather than the exact cache folder.
Low-space alerts are on by default and fire when less than 20 GB is free (change this in Settings ▸ General). They also fire when more than 5 GB disappears within 10 minutes, but only while Gigabroom is running. Turn on Open at login in the background to keep them active. More in What Grew and menu bar and alerts.
If the Spotlight index is the one growing
A separate December 2024 community comment describes a Mac mini where a broken Spotlight index burned about 45 GB a day. We have no confirmed fix from that report. The standard step is to rebuild the index, which Apple documents:
- Open System Settings and click Spotlight (or Siri & Spotlight) in the sidebar.
- Scroll down and click Search Privacy….
- Add your startup disk, wait a few seconds, then remove it from the list.
- Click Done and quit System Settings.
Apple's article on Spotlight reindexing the contents afterwards is About Spotlight indexing and search results. Indexing can take a while, and search is limited meanwhile.
Terminal alternative:
sudo mdutil -E /This asks for your administrator password, erases the Spotlight index for the startup volume and rebuilds it. There is nothing to undo.
Gigabroom has no scan-as-administrator mode. Root-only folders it can't read show up in Hidden space on a whole-volume scan. If your map total is far below what Finder reports as used, open that item for a breakdown.
Quick reference
| Symptom | Likely cause | Fix |
|---|---|---|
e5bundlecache is tens of GB | Runaway mediaanalysisd cache | Delete contents, restart |
| Refills within days | Apple Intelligence or Photos analysis | Turn the feature off, update macOS |
| Folder doesn't exist | Space lost elsewhere | Scan the startup disk, see clearing System Data |
| Free space unchanged | Trash not emptied, or local snapshots | Storage not going down |
| Loses GB per day, folder is fine | Possible Spotlight index problem | Rebuild the index |
Checklist before you try again
- You deleted the contents, not the
com.apple.mediaanalysisdfolder. - If you used the Trash, you emptied it.
- You restarted the Mac.
- You checked System Settings ▸ General ▸ Storage afterwards.
- You turned off the feeding feature if the folder keeps refilling.
If nothing works
Contact Apple Support. Include your macOS version, Mac model, the full path, the folder's size and bundle count, and what you've tried.
My Mac's disk keeps filling up. The folder
~/Library/Containers/com.apple.mediaanalysisd/Data/Library/Caches/com.apple.mediaanalysisd/com.apple.e5rt.e5bundlecache
grows to [size] GB ([number] bundles). I deleted its contents and restarted,
and it refilled in [time]. macOS version: [version]. Mac model: [model].
Apple Intelligence is [on/off]. Please advise whether this is a known
mediaanalysisd issue and how to stop it.Common questions
Is it safe to delete e5bundlecache?
Community reports say yes, because it sits under Caches and macOS rebuilds it. Apple hasn't documented it, so treat that as user experience, not an official guarantee.
Why not just drag it to the Trash?
You can, but the space only returns when you empty the Trash. The reports specifically say to delete the contents, not move them.
Will deleting it break Photos or Apple Intelligence?
We have no report of that. At worst the analysis rebuilds its cache, which may use CPU for a while.
Can Gigabroom clean it for me?
No. Gigabroom finds and sizes it, but it protects Apple's containers, so you remove it by hand. Gigabroom is part of MacSuite and has a free 7-day trial; for other ways to reclaim space, see How to free up space on Mac.