What is mediaanalysisd on a Mac, and why is it using space?

mediaanalysisd is a macOS background service that analyzes photos and videos for features like Visual Look Up and search, and its container can grow large, so check it before touching it.

Shiva ChandraMaker of Clean House · · 2 min read
Short answer

mediaanalysisd is an Apple background process. It scans your photos and videos so Photos can recognize people, scenes and text. Its container holds working data for that analysis, which macOS can rebuild, but removing it by hand is not recommended. Let the analysis finish and restart first. Verdict: Look first.

Path
~/Library/Containers/com.apple.mediaanalysisd
What it is
Working data from the background service that analyzes media for Photos features
Typical size
Usually small; large photo libraries can make it grow to several gigabytes
Made by
macOS (the mediaanalysisd process) and the Photos app
Safe to delete?
Look first Let macOS finish and restart before removing anything.
Comes back?
The analysis data is recreated, but it takes time and processing.

What is mediaanalysisd?

It is a system service, which you may see in Activity Monitor using the processor after a big photo import or an OS update. It does the work behind searching Photos for objects, finding people and pets, and recognizing text in pictures. The results are stored so the analysis does not repeat each time.

Its data folder sits in your Containers folder, named com.apple.mediaanalysisd.

Is it safe to delete the mediaanalysisd folder?

It does not hold your photos. Your pictures are in the Photos library, which is a separate location. The risk is different: deleting data from a system service that is running can confuse it, and the analysis has to start again, using processor time and battery.

So the honest answer is that it is probably not harmful, but it is also not something to clear without a reason. If it is unusually large, restart the Mac and let it finish analyzing, then check the size again.

What should I do if it is huge?

  1. Leave the Mac plugged in and idle for a while so the analysis can finish.
  2. Restart the Mac.
  3. Open Finder, choose Go, then Go to Folder, and enter ~/Library/Containers/com.apple.mediaanalysisd to check the size.
  4. If it is still very large and you want it gone, quit Photos, and move only the cache contents inside Data/Library/Caches to the Trash.
Do not touch the Photos library to fix this. Your photos are not stored in this folder.

How Clean House handles it

Clean House treats this folder as part of the Containers area. The Why card names it as an Apple service's data and does not offer it as a one-tap clean. Peek shows what is inside so you can decide, and anything you move goes to the Trash with an undo.

Questions

What is mediaanalysisd?

It is a macOS background process that analyzes photos and videos for search, people recognition and Visual Look Up.

Is mediaanalysisd a virus?

No. It is part of macOS. High processor use usually means it is analyzing a big photo library.

Will deleting it delete my photos?

No. Photos are in the Photos library. This folder holds analysis data only.

Sources

  1. Apple Support: Free up storage space on Mac