'Delete photo from google photos API

Is it possible to delete any photo stored in google photos programmatically? I've seen picasa web API but can't see that it's possible to delete files via API.



Solution 1:[1]

The API does not provide this feature.

You can upvote the issue in Google's bug tracker by starring this item https://issuetracker.google.com/issues/109759781

Solution 2:[2]

I was thinking the same thing.

I'm not an active developer myself, so take this advice with a grain of salt, but looking a the help pages:

https://developers.google.com/photos/library/guides/get-started https://developers.google.com/photos/library/reference/

... nothing jumps out at me that would suggest that you can delete a photo via the API.

This is annoying, because one of the glaringly obvious features missing from the otherwise-excellent Google Photos service is the ability to auto-detect, and optionally delete, duplicate photos. For various legacy reasons, I've literally 1000's of duplicates in my collection which would take me days to identify and delete manually.

So hopefully in the not too distant future, Google Photos API will allow deletion, and/or Google Photos will add this into the core feature set.

Solution 3:[3]

The API does not provide the feature, however if you do need to delete all or some of your photos, there is https://github.com/mrishab/google-photos-delete-tool

It runs in your browser however, in the JS console :(

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Giles Knap
Solution 2 Ross Gerring
Solution 3 alexhayes