If your Mac Photos library won’t open after you deleted or moved a folder, the most likely cause is that the Photos app can no longer find the library file, or the library itself was partially deleted. The fix is usually to re-select the library in Photos, restore it from the Trash or a backup, or rebuild the library’s database.
Why Deleting a Folder Breaks Photos
The Photos app on macOS doesn’t store your pictures as loose files in a folder you can browse. Instead, it keeps everything inside a single package file called Photos Library.photoslibrary. This package looks like one file in Finder, but it’s actually a folder containing your original images, edited versions, thumbnails, and the database that tracks all of it.
When you delete or move a folder that contains this library, you’re not just removing a few photos. You’re removing the entire database and all the associated data. The Photos app has no way to know where the library went, so it either shows an error like “The library “Photos Library” could not be opened because it is either missing, or is in use by another application,” or it opens an empty, default library.
First: Check the Trash and Recent Deletions
Before you do anything drastic, check whether the library is still recoverable. If you deleted the folder from your Mac, it should be in the Trash. If you emptied the Trash, you might still have a backup in Time Machine or iCloud.
- Open the Trash from the Dock.
- Look for a file named Photos Library.photoslibrary (or whatever you named it).
- If you find it, right-click it and select Put Back. This restores it to its original location.
- If you don’t see it, check Time Machine: open the folder where the library used to be, enter Time Machine, and go back to a date before the deletion.
If you moved the folder to an external drive or a different internal volume, Photos won’t know where it went. You can re-link it by holding the Option key while opening Photos, then selecting the library from its new location.
How to Re-Select the Library in Photos
If the library file still exists somewhere on your Mac, the simplest fix is to tell Photos where it is.
- Quit Photos completely (press Cmd+Q).
- Hold down the Option key on your keyboard.
- While holding Option, double-click the Photos app icon in the Applications folder or Dock.
- A dialog appears showing all the libraries Photos knows about. Click Other Library… and navigate to the .photoslibrary file.
- Select it and click Open.
This works if the library is intact but just not linked. If the library itself is corrupted or partially deleted, you’ll need a different approach.
When the Library Is Corrupted or Incomplete
If you deleted the folder and then emptied the Trash, the library might be gone for good unless you have a backup. But if only part of the library was deleted (for example, you moved some subfolders out of the package), the database may be corrupted.
Photos has a built-in repair tool that can sometimes fix a damaged library. To use it:
- Quit Photos.
- Hold Option+Cmd together.
- Open Photos. You’ll see a dialog with a Repair button.
- Click Repair and wait. This can take a while if your library is large.
If Repair doesn’t work, you can try creating a new library and importing the original files. But if the originals were inside the deleted folder, they’re gone unless you have a backup.
Where the Library Actually Lives
By default, your Photos library is stored in your home folder under Pictures. The full path is /Users/yourusername/Pictures/Photos Library.photoslibrary.
However, you might have multiple libraries. If you ever created a second one, or if you moved the default one to an external drive, Photos may be looking for the wrong one. To see which library Photos is currently using, open Photos and go to Photos > Settings > General — it shows the library location there.
If you deleted a folder that contained the library, but you have another library elsewhere, Photos might open that other one. That’s why you see a different set of photos than you expected.
Preventing This in the Future
Once you’ve recovered your library, take steps to avoid this happening again:
- Never move or delete the Photos Library.photoslibrary package while Photos is running.
- Keep a backup with Time Machine or another backup tool. The library is a single file, so it’s easy to back up.
- If you want to store photos on an external drive, use Photos > Settings > General > Change to move the library properly, not by dragging it in Finder.
- Consider enabling iCloud Photos so your originals are stored in the cloud, not just on your Mac.
What About the “System Photo Library”?
macOS designates one library as the System Photo Library, which is the one used by iCloud, the Memories feature, and other system integrations. If you deleted that library, you may need to set a new one. When you open Photos while holding Option, you’ll see a button to choose a library. The first library you open after deletion may become the new System Photo Library, but you can change it in Photos > Settings &strong> > General > Use as System Photo Library.
If you had iCloud Photos enabled, your photos are likely still in iCloud. After opening a new or restored library, go to Photos > Settings > iCloud and make sure iCloud Photos is turned on. It will download your originals again, though it may take time depending on the size of your library.
Frequently Asked Questions
Can I recover a deleted Photos library without Time Machine?
If you emptied the Trash and have no Time Machine backup, recovery is very difficult. Third-party data recovery software might find the files, but the library is a package with many files, and partial recovery often leads to a corrupted library. Your best bet is to check iCloud Photos if you had it enabled, or check if you have any other backup like a cloud service or an external drive.
Why does Photos open a blank library after I deleted the folder?
When Photos can’t find the original library, it creates a new, empty one in the default location. This is why you see no photos. The original library is not gone necessarily — it might be in the Trash or elsewhere. Use the Option-key method to locate and open the original library.
What is the difference between “Repair” and “Rebuild” in Photos?
Repair attempts to fix the database structure without changing your photos. Rebuild is a more thorough process that recreates the database from the original image files. Rebuild is only available in specific situations (like when the library is severely damaged) and is not a standard menu option — it’s usually triggered automatically during repair if needed.
Can I move my Photos library to an external drive?
Yes, but you must do it through Photos itself. Go to Photos > Settings > General and click Change next to the library location. This copies the library properly and updates the system reference. Dragging the library in Finder often breaks the link and causes the exact problem you’re experiencing.
If I delete the Photos app, will I lose my photos?
No. The Photos app is just the viewer. Your photos are stored in the library file. Deleting the app doesn’t delete the library. You can reinstall Photos from the App Store or macOS recovery, and your library will still be there.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Philips DST7060/20 7000 Series Iron: Specs & Fit
- Coal Fueled Jet Aircraft: Could It Work?675 L
- Remote Desktop on Raspberry Pi: How to Enable It
- Word Select Last Line in Paragraph?
- Google Assistant IFTTT Recipes: 7 Useful Automations
- OLED TVs in Dark Rooms: Why They Look Better and When They Don’t