Skip to content

Remove empty albums #1315

Answered by RhetTbull
habi asked this question in Q&A
Dec 6, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

@habi I wrote a quick script to do this that can be run with osxphotos (version 0.65.0 and later). You can run the script directly from GitHub without downloading it first via:

osxphotos run https://raw.githubusercontent.com/RhetTbull/osxphotos/main/examples/delete_empty_albums.py --folders --dry-run

It has only 2 options: --folders: prune empty folders and --dry-run: show what will be done without actually deleting anything.

There is one limitation: empty subfolders cannot be deleted (though these will be listed so you can manually delete them). This is due to a bug in Apple Photos that frustratingly has been there since macOS Catalina. I'm on Ventura and it's still not fixed (have not …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@habi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by RhetTbull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants