google-photos-delete-tool
google-photos-delete-tool copied to clipboard
Delete only photos/videos that are not part of a shared album
Thank you for building this. As I would like to liberate space on my Google account, I'd like only to delete photos and videos that are not part of a shared album. Because if I delete all the photos, they will also be deleted from the shared album.
Exactly the functionality I'm seeking. But looking at the code, this seems like quite a challenging extension. The existing JavaScript logic selects all visible photos, chooses the delete action, then confirms the deletions. Essentially automating the browser actions a human user would take.
The filter you're describing (and I also seek) would require the code to click on each image, click on the ⓘ information icon, check whether the image is in an album, and if not, click on delete and confirm. A very substantial extension.
I've also checked out the Google Photos API. Its list functionality would make it possible to determine if an image is in an album. But the API lacks any capability to delete images. You might imagine some sort of hybrid approach (API + console JavaScript), but that seems like a horrid project.
The APIs for GCP are generally useful and complete, which makes the lameness of the Google Photos API particularly disappointing. Maybe a lingering aftereffect of the Google+ failure.