What is Photos Library.photoslibrary, and can I delete it?

Photos Library.photoslibrary is the package that holds all your photos, videos and edits in the Photos app, and you should never delete it from outside Photos.

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

The Photos library is your photo collection, not a cache. Deleting it from Finder deletes the photos unless they are safely in iCloud Photos or backed up elsewhere. To save space, use Photos' own settings, such as Optimize Mac Storage. Verdict: Keep. Look inside only with Show Package Contents, and change nothing.

Path
~/Pictures/Photos Library.photoslibrary
What it is
A package that holds originals, edited versions, thumbnails and the database for the Photos app
Typical size
Roughly the size of your photo and video collection; often tens or hundreds of gigabytes
Made by
Photos
Safe to delete?
Keep Never delete it from Finder. Shrink it from inside Photos.
Comes back?
No, unless the photos are also in iCloud Photos or a backup.

What is in Photos Library.photoslibrary?

It looks like one file in Finder, but it is a package, a folder disguised as a file. Inside are your original photos and videos, the edits you made, thumbnails, and the database that organizes albums, faces and metadata. Some of the folders inside can be rebuilt, but the originals cannot.

Is it safe to delete the Photos library?

No. If you drag it to the Trash and empty it, the photos are gone unless a copy exists in iCloud Photos or a backup such as Time Machine. Editing files inside the package by hand can also corrupt the library, so do not open it up and delete parts.

If you use more than one library, the same rule applies to each one.

How do I free up space from Photos safely?

  1. Open Photos, then choose Photos, then Settings.
  2. On the iCloud tab, if you use iCloud Photos, choose Optimize Mac Storage. Full-size originals stay in iCloud and the Mac keeps smaller versions as space is needed.
  3. Delete photos you do not want inside Photos, then open Recently Deleted and delete them there too, because they keep using space until then.
  4. Move the whole library to an external drive only through Photos' own library switcher, not by dragging parts of it.
Optimize Mac Storage uses your iCloud storage plan. Check you have enough iCloud space before you turn it on.

How Clean House handles it

Clean House marks the Photos library as Keep and says never to remove it from outside Photos. Its Why card points to Optimize Mac Storage in Photos settings as the better way to save space. Peek can show what is inside, but the library is never offered for cleaning.

Questions

Can I delete Photos Library.photoslibrary?

Not from Finder. It contains your photos and videos. Use Photos to delete pictures or turn on Optimize Mac Storage.

Why is my Photos library so big?

It holds full-size originals, edits and thumbnails for every photo and video. Video takes the most space.

Does deleting photos in Photos free space right away?

Not until you delete them from Recently Deleted too. Until then they still use space.

Sources

  1. Apple Support: Free up storage space on Mac