Accidentally deleted photos!

Topic summary

A user accidentally modified product handles using the ‘find and replace’ tool, which created duplicate products upon re-import. They deleted all draft products intending to restore them from a CSV backup, but the import is now failing with “file not found” errors for product images.

Root cause identified:
Deleting draft products in Shopify also removes their associated images from the CDN. The CSV only stores image URLs (references), not the actual image files themselves—so those links now point to deleted resources.

Recommended solution:

  • Upload all product images to Shopify Files (Content > Files)
  • Obtain the new CDN URLs for each image
  • Update the CSV file with these new image links
  • Re-import the updated CSV

Status: The issue remains unresolved, requiring manual image re-uploading and CSV updating before products can be successfully restored.

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

Hi,

I had a file of ‘draft’ products exported that I was doing some work on. I accidentally when using the ‘find and replace’ tool, altered my product handles, which of course when I then imported - sent everything nuts and I ended up with double a whole bunch of products… I decided that because I had the CSV file here, I would DELETE all of the drafts, and re-import the file with all of the data.

It is failing because the product photos have all deleted and can’t be found.

What do I do? How do I make this work? Do I need to manually go in and add all of the photos again?

I thought this was the whole point of backing up products with a csv file…

Help!!

Replying to myself because I forgot to load the failure email for reference…

Did deleting the products delete all of my photo files too?

Hi, @BelK-AWCC

When you deleted the draft products, Shopify also deleted their associated images from the CDN (hosted URLs). These image URLs in your CSV are now pointing to files that no longer exist — which is why you’re seeing the “file not found” errors. The CSV file saves the links to images, but not the images themselves — it doesn’t “back up” the files, just the reference.

What you can do now:

1)Upload all your images into Shopify Files (Content > Files)

2)Get the new image URLs from there

3)Update your CSV’s column with the new links

4)Re-import

Hope this help.