Delete photos from the iPhone's Photos library by file name (from photo list), over USB
Uses ImageCaptureCore, like Image Capture.app, so Photos forgets the photo too.
Permanent: it skips Recently Deleted, and with iCloud Photos the delete syncs.
Only delete photos you made (e.g. screenshots); ask the user before deleting theirs.
The iPhone must be unlocked.
Parameters
lease *string
Lease id exactly as acquire printed it, e.g. "studio:42"
mac?string
Mac slug from list, e.g. "studio". Needed when several Macs are online