Even better, they make it pretty impossible to manage your online storage of photos since they split it out of drive.google.com
You can then use rclone to sync deletions, which uses their API.
Then I run rclone sync:
rclone sync --dry-run gphotos:media/by-year /local/storage/path
Then if I delete some pictures from Google Photos, the same sync command will delete them from my local backup.