Out-of-stock products: keep, redirect or remove?
A product sells out. Someone on the team deletes it, or hides it, so customers don’t see something they can’t buy.
It feels tidy. But that product page might have spent a year building up rankings, links and reviews. Delete it, and all of that goes with it. Anyone who clicks the old link from Google, a blog post or a bookmark lands on a “page not found”.
What to do with out-of-stock products is one of those questions every store runs into, especially around busy seasons like this one. The answer depends on one thing: is it coming back?
The quick decision
| Situation | What to do |
|---|---|
| Temporarily out of stock, coming back | Keep the page live |
| Gone for good, close replacement exists | Redirect (301) to the replacement |
| Gone for good, no replacement, but similar products exist | Redirect to the most relevant collection |
| Gone for good, nothing related, and the page had no traffic or links | Remove it and let it 404 |
Let’s go through each.
Keep: temporarily out of stock
If the product will be back in a few weeks, keep the page exactly where it is. The URL, the rankings, the reviews: all of it stays useful.
But make the page useful while it’s out of stock:
- Say so clearly, near the price, not hidden in small print.
- Give an expected date if you have one.
- Offer a “notify me when it’s back” sign-up. Many Shopify themes and apps do this. It turns a dead end into a lead.
- Show alternatives: similar products, or other colours and sizes that are in stock.
- Keep the structured data honest. Product markup should show
OutOfStockavailability. Most Shopify themes do this automatically from inventory, but check with Google’s Rich Results Test.
On Shopify, you also need to decide what the inventory setting does. “Continue selling when out of stock” lets people pre-order, which can be fine if you’re clear about delivery times. If you don’t want that, make sure the button actually changes to “Sold out”.
Should out-of-stock products stay in collections?
Usually, yes, but lower down. A collection full of “Sold out” labels at the top frustrates shoppers. Many stores sort sold-out items to the end of a collection (some themes and apps do this automatically) rather than removing them. That keeps the product pages linked internally, which helps them stay crawled and indexed.
Redirect: gone for good, with a replacement
If the product won’t come back but there’s a direct successor (the 2023 model of last year’s product, the same item from a new supplier), 301 redirect the old URL to the new product.
That passes most of the old page’s value to the new one, and visitors land somewhere useful.
On Shopify, there are two ways to do it:
- When you change a product’s URL handle, Shopify offers to create a redirect automatically.
- For deleted products, add the redirect yourself in the admin’s URL redirects section (under the online store’s navigation settings): old path, new path.
Create the redirect before you delete the product, or straight after. Don’t leave it for later.
Redirect: gone for good, no direct replacement
If there’s no like-for-like product, the next best thing is the most relevant collection. A discontinued “blue linen shirt” redirects to the Linen Shirts collection, not the homepage.
Two cautions:
- Don’t redirect everything to the homepage. Google tends to treat irrelevant redirects like that as a soft 404 anyway, and visitors find it confusing.
- Keep it relevant. The test is simple: would someone who wanted the old product be happy to land here?
Remove: gone for good, nothing related, no value
Some products had no traffic, no links and no reviews. Nothing to preserve. For those, deleting the product and letting the URL return a 404 is fine. Google will drop it from the index in time.
Shopify returns a 404 for deleted products by default. Make sure your 404 page is helpful: a search bar, links to main collections, maybe bestsellers.
How do you know whether a page “had value”? Check:
- Search Console: has the URL had clicks or impressions in the past 12 months?
- Ahrefs or similar: does it have backlinks?
- Analytics: did anyone visit it, from any channel?
If the answer to all three is no, removing it costs nothing.
Special case: seasonal and recurring products
Products that come and go every year (Christmas jumpers, a summer range, a limited edition that returns) are best kept as permanent pages, even if they’re unavailable for months. Update them when they’re back. The rankings and links carry over each year, which a new URL every season never gets. It’s the same principle I gave for sale pages in Black Friday SEO: what you can still fix this week.
What about variants?
If only one size or colour is out of stock, there’s nothing to decide. The product page stays; the variant is marked unavailable. Make sure the default variant shown on page load is one that’s actually in stock, so the first thing shoppers see isn’t “Sold out”.
Mistakes to avoid
- Deleting products in bulk after a stock clear-out, with no redirects.
- Hiding products by setting them to draft without a redirect. A draft product’s URL stops working for visitors too.
- Marking pages
noindexwhile they’re temporarily out of stock. They’ll lose their place, and it can take a while to win back. - Leaving the structured data saying “InStock” when the product isn’t.
Related reading
- Product page SEO: the elements that matter
- Redirects on WordPress: 301, 302 and the mistakes I keep seeing
- Shopify URL structure: what you can and can’t change
- Product structured data: price, availability and reviews
Before you delete your next sold-out product, ask one question: is it coming back? Then use the table at the top. It’ll take thirty seconds and might save a page that took a year to rank.