Out-of-stock Shopify products deindexed and dropped from Google — how to keep ranking
When a product sells out and you hide or delete it, its URL 404s and Google quietly deindexes it — so the rankings you built disappear. When it comes back, deleting and recreating gives it a brand-new handle and blank meta fields, so it starts from zero instead of reclaiming its old position. Shopify keeps no history of the old handle or SEO fields, so there's nothing native to restore from.
Step by step
Don't delete or unpublish an out-of-stock product — set its inventory to 0 but keep the page published so the URL stays live and indexed. A deleted or hidden product returns a 404, and a 404 is exactly what gets it dropped from Google.
Keep the out-of-stock page worth ranking so Google doesn't treat it as a thin or soft 404: leave the description, images and reviews in place, add a 'notify me when back in stock' signup, and link to related in-stock products.
If a product was already removed (or its handle changed), the old URL 404s and any new one starts from zero — recreate the original handle, or 301-redirect the old URL to it (Online Store > Navigation > URL Redirects), re-apply the original meta title, description and alt-text, then re-submit the URL in Google Search Console so it can reclaim its positions.
Going forward, keep a daily snapshot of every product's SEO fields and handle — products and collections — so when an item comes back in stock you restore its exact pre-rupture metas and handle in one click and keep its ranking, instead of rebuilding from scratch.
Source: Google Search Central: handling out-of-stock products & soft 404s; Shopify Help Center: URL redirects
SEO Vault keeps a daily snapshot of every SEO field on your store — meta titles, descriptions, alt-text, tags, handles (products AND collections) — and emails you the moment something changes in bulk, with the likely app responsible. One click restores yesterday's state, just the SEO fields. Free to monitor and get alerted; $14/mo for 1-click restore.