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.
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.
- iCloud Photos โ if ticked, every photo and video you take is uploaded to iCloud and made available on every signed-in Apple device.
- Optimise Mac Storage โ stores downsized previews locally and keeps full-resolution originals only in iCloud. The app will download originals on demand.
- Download Originals to this Mac โ keeps full-resolution originals locally on this Mac. Safe but space-hungry.
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.
| Setting | Local Space Used | Offline Access | Export Quality |
|---|---|---|---|
| Download Originals | Full library size (can be huge) | Always full resolution | Always original |
| Optimise Mac Storage | 20โ30% of original library | Previews only; originals download on demand | Original after short download |
| iCloud Photos disabled | Only what is local โ nothing syncs | Always full resolution | Always 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.
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.
- Open Photos. In the sidebar, scroll down to Utilities and click Duplicates.
- Wait while Photos scans. On a 100 GB library this can take ten to thirty minutes on first run.
- Review the groups. Photos always keeps the highest-quality version by default and merges metadata (captions, albums, keywords) from the discarded copies.
- Click Merge at the top of each group, or select all and click Merge โฆ Items in bulk.
- 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.
# 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.
- People & Pets โ Photos clusters faces automatically. Confirming the clusters once makes future searches trivial: typing Mum 2023 narrows ten thousand photos to twenty.
- Memories โ automatically generated slideshows for places and dates. They surface photos you did not know you had, which saves you from deleting hidden gems.
- Places โ the map view in the sidebar lets you prune photos from specific locations (old addresses, test shoots, scouted locations) in one pass.
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.
- In Photos, create a Smart Album using File โ New Smart Album, set Date is before and pick your cut-off.
- Select the album, then File โ Export โ Export Originals. Choose a folder on your external drive.
- After export, verify the files open from the external drive, and that EXIF data is intact.
- 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.
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:
- Verify Time Machine completed within the last 24 hours.
- Make a cold copy of the library to an external drive (optional, recommended on libraries > 100 GB).
- Run the built-in Duplicates utility and merge every group.
- Delete screenshots older than ninety days from Media Types โ Screenshots.
- Delete short video tests, blurry frames and burst outtakes.
- Export any pre-2015 photos to an external drive, verify, then delete from the library.
- Empty Recently Deleted.
- 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.