Downloading Deleted Files... only to delete them?

Author: michaelkriegerCreated Dec 22, 2022Updated Aug 30, 2026
Labelsbug

Overview

With the latest update I've noticed a large number of deleted images- many more than I would ever delete each day (60-80).

Looking at the logs, the app is downloading images, and in the same run deleting the very same files it just downloaded (by file name). The logs have nothing interesting in the preamble or file list, except, after it reviews the deduplicated files and downloaded files, it reviews the deleted files and deletes a bunch of files it just downloaded (about 60-80 each time).

Why is it downloading the recently deleted images and subsequently deleting them?

Steps to Reproduce

I add 30-40 photos to my phone icloudPD downloads 122 icloudPD deletes 62 The next day it downloads the same deleted images and re-deletes them.

Expected Behavior

It should not download recently deleted.

Actual Behavior

It downloads recently deleted and then deletes them.

Context

Crossposted to https://github.com/boredazfcuk/docker-icloudpd/issues/249 in case one is the culprit.

Source: icloud-photos-downloader/icloud_photos_downloader