Given this node
{
"node": {
"id": "gid://shopify/MediaImage/32425425993806",
"alt": "FIBREGLASS SINGLE SIDED STEP LADDER - Close Up",
"createdAt": "2025-12-09T04:49:31Z",
"updatedAt": "2025-12-09T04:49:34Z",
"fileStatus": "READY",
"status": "READY",
"mediaContentType": "IMAGE",
"fileErrors": [
],
"mediaErrors": [
],
"mediaWarnings": [
],
"image": {
"url": "https://cdn.shopify.com/s/files/1/0702/5816/3790/files/FIBREGLASS-SINGLE-SIDED-STEP-LADDER-Close-Up-min_f15d16e3-7c19-4c25-96c0-aa4751dfdaca.png?v=1765255774",
"width": 2000,
"height": 2000,
"altText": "FIBREGLASS SINGLE SIDED STEP LADDER - Close Up",
"id": "gid://shopify/ImageSource/32457454059598"
},
"originalSource": {
"fileSize": 694285,
"url": "https://shopify-shop-assets.storage.googleapis.com/s/files/1/d/96e7/0702/5816/3790/files/FIBREGLASS-SINGLE-SIDED-STEP-LADDER-Close-Up-min_f15d16e3-7c19-4c25-96c0-aa4751dfdaca.png?REDACTED"
},
"preview": {
"status": "READY",
"image": {
"url": "https://cdn.shopify.com/s/files/1/0702/5816/3790/files/FIBREGLASS-SINGLE-SIDED-STEP-LADDER-Close-Up-min_f15d16e3-7c19-4c25-96c0-aa4751dfdaca.png?v=1765255774",
"width": 2000,
"height": 2000
}
},
"translations": [
]
},
"cursor": "eyJsYXN0X2lkIjozMjQyNTQyNTk5MzgwNiwibGFzdF92YWx1ZSI6IjMyNDI1NDI1OTkzODA2In0="
}
which id should used when deleting the image? There’s the node.id and node.image.id.
The context for this is in writing code to minimise the number of duplicated images. I tried usingduplicateResolutionMode's RAISE_ERRORbut didn’t get any feedback in the initial upload. An AI says that I should expect to see data in the userErrors but I’m not seeing anything there except an empty array. I was rather hoping to be able to attempt to upload, get a response that indicates the file is already present and the gid of the the original and be able to use that as the gid in my google sheet.