The .photoslibrary Bundle Explained

Open Finder, navigate to your Pictures folder, and you will see a file called Photos Library.photoslibrary. It looks like a single file, but it is actually a macOS package โ€” a folder with a special extension that Finder treats as a sealed document. Right-click it and choose Show Package Contents to peek inside. You will see folders for originals, resources, derivatives, Masters and a SQLite database.

This matters because your Photos library is almost certainly the single largest thing on your Mac. A few years of casual iPhone photography, a 4K video or two, and a handful of imported camera cards will push the bundle past 200 GB without much effort. Yet most people never look inside it, trust the Photos app alone to manage space and are surprised when their drive fills up.

The golden rule: never touch anything inside the bundle directly. Modifying files inside .photoslibrary breaks indexing, corrupts the database and can orphan every single photo. Clean up through the Photos app only. The storage techniques in our general storage guide apply everywhere on the system except here.

๐Ÿ›‘
Hands off the package contents

Even experienced developers get this wrong. Do not delete, move, rename or copy any file inside Photos Library.photoslibrary. Everything you need to do can be done from inside the Photos app or through Finder's integration with it.

iCloud Photos Settings Demystified

Before you start a cleanup, open Photos and go to Photos โ†’ Settings โ†’ iCloud. The three options there govern every byte your library uses on this particular Mac.

If you only have one Apple device or you work offline frequently, Download Originals is the right choice. If you have multiple Macs or iPads and your network is reliable, Optimise Mac Storage can save you fifty to several hundred gigabytes without losing a single photo. The settings are not permanent โ€” you can flip between them and the library will re-sync accordingly, although doing so repeatedly is slow.

Optimize Mac Storage vs Originals

The trade-off matters enough to think through carefully.

SettingLocal Space UsedOffline AccessExport Quality
Download OriginalsFull library size (can be huge)Always full resolutionAlways original
Optimise Mac Storage20โ€“30% of original libraryPreviews only; originals download on demandOriginal after short download
iCloud Photos disabledOnly what is local โ€” nothing syncsAlways full resolutionAlways original

A common pattern for photographers and families: enable Optimise Mac Storage on travel MacBooks, enable Download Originals on a main desktop or Mac mini that acts as the library's home. This way you always have one device with the full archive and other devices stay nimble.

โ„น๏ธ
Give iCloud time to settle

After changing these settings, Photos can take hours or even days to move originals in and out of iCloud. Do not panic if your drive usage does not change immediately โ€” let it complete overnight on a wired or strong WiFi connection.

The Built-in Duplicates Finder

Since macOS Ventura, Photos has an excellent built-in duplicates finder. It uses perceptual hashing to spot near-identical shots โ€” including HEIC vs JPEG copies, re-imported photos and duplicate videos. For most libraries this alone reclaims 5โ€“15% of the bundle size.

  1. Open Photos. In the sidebar, scroll down to Utilities and click Duplicates.
  2. Wait while Photos scans. On a 100 GB library this can take ten to thirty minutes on first run.
  3. Review the groups. Photos always keeps the highest-quality version by default and merges metadata (captions, albums, keywords) from the discarded copies.
  4. Click Merge at the top of each group, or select all and click Merge โ€ฆ Items in bulk.
  5. After merging, empty the Recently Deleted album โ€” otherwise space is not actually reclaimed for thirty days.

The merge is non-destructive during the thirty-day deleted window, which is why we love it. If you make a mistake, every duplicate is recoverable from Recently Deleted for the first month.

Deleting Screenshots En Masse

Screenshots are the single most-wasted category of storage. A busy iPhone user accumulates hundreds a year โ€” product photos, map snippets, text message confirmations, chat threads, the lot. Almost none are worth keeping after a week.

Photos includes a dedicated album for them. In the sidebar, open Media Types โ†’ Screenshots. You will see every screenshot ever taken, sorted by date. Switch to the largest thumbnail view, scroll to the bottom (oldest first), and start selecting.

Mass selection in Photos
# Keyboard-only selection workflow
โŒ˜ A        select all screenshots in the album
click + โ‡ง click  range selection between two screenshots
โŒ˜ click    toggle individual screenshots in/out of selection
โŒ˜ โŒซ        move selection to Recently Deleted
# Remember to empty Recently Deleted to reclaim space.

The usual yield is between 3 GB and 20 GB. If your screenshot folder is ten thousand items and growing, build a habit of deleting screenshots on the iPhone itself the moment they stop being useful โ€” they will never reach the Mac in the first place.

Using Memories and People to Curate

Cleanup is not only about deletion โ€” it is also about rediscovering what you want to keep. Photos' Memories and People albums are genuinely useful for this.

If your library is well-organised, duplicate hunting and deletion become safer because you can see context โ€” this is from our Berlin trip, so the ten blurry Alexanderplatz shots can go โ€” rather than deleting blindly.

Exporting Old Libraries Safely

Some clients have twenty years of photos and no desire to keep everything on their primary Mac. The right move is to export older material to an external drive as a stand-alone archive.

  1. In Photos, create a Smart Album using File โ†’ New Smart Album, set Date is before and pick your cut-off.
  2. Select the album, then File โ†’ Export โ†’ Export Originals. Choose a folder on your external drive.
  3. After export, verify the files open from the external drive, and that EXIF data is intact.
  4. Only when verified, select the photos in the Smart Album and delete. Empty Recently Deleted.

Exporting originals keeps full resolution, every EXIF field and every embedded Live Photo video. The exported folder is a plain Finder folder โ€” no bundle, no Photos app required โ€” and can be re-imported later if needed.

โš ๏ธ
iCloud is not a backup

If iCloud Photos is enabled, deleting from your Mac deletes everywhere. Always export first, verify the files, then delete. For long-term preservation keep at least one offline copy on an external drive and a second cloud copy with a different provider.

Time Machine Before Any Cleanup

Photos is unusually unforgiving: once Recently Deleted empties (after thirty days, or sooner if you empty it manually), the only recovery path is a Time Machine restore. Before you start any serious cleanup session, make sure a Time Machine backup has completed within the last 24 hours.

Plug in your Time Machine drive, open System Settings โ†’ General โ†’ Time Machine, and check that the most recent backup timestamp is fresh. If it is not, trigger a manual back-up from the Time Machine menu bar icon and wait for it to finish before you begin.

For particularly large libraries, consider making a one-off clone of the Photos Library.photoslibrary file to an external drive before any cleanup. The clone is a simple Finder copy โ€” just remember not to open it while the original is also open, as two Photos processes cannot access the same library simultaneously.

A Safe End-to-End Cleanup Workflow

Combining everything above, here is the exact workflow we run on client Macs:

  1. Verify Time Machine completed within the last 24 hours.
  2. Make a cold copy of the library to an external drive (optional, recommended on libraries > 100 GB).
  3. Run the built-in Duplicates utility and merge every group.
  4. Delete screenshots older than ninety days from Media Types โ†’ Screenshots.
  5. Delete short video tests, blurry frames and burst outtakes.
  6. Export any pre-2015 photos to an external drive, verify, then delete from the library.
  7. Empty Recently Deleted.
  8. Switch to Optimise Mac Storage if your library is still over 50 GB locally.

If you would prefer not to run this yourself โ€” libraries over 500 GB can take a full day to process and a single mistaken bulk-delete is painful โ€” our London team runs this workflow on-site or remotely. See also our file organisation guide for keeping the rest of your Mac equally tidy.