A surprising number of stores let a product page 404, or redirect it away, the moment it sells out. This is one of the more common, avoidable ways ecommerce sites lose ranking value they've already built.
Why deleting the page is usually the wrong move
A page that's ranked and accumulated some authority still holds that value even while the product is unavailable, provided it stays live. Deleting it or redirecting it away throws that away, often for something that turns out to be temporary.
What to do instead
- Keep the page live with a clear "out of stock" or "sold out" message, rather than removing it entirely
- Offer a restock notification so interested visitors can be contacted when it's back, which also captures useful demand data
- Show genuinely similar alternatives so a visitor who can't get this specific item still has somewhere useful to go
- Update structured data to correctly reflect current availability, rather than showing inaccurate stock information
When it's genuinely permanent
If a product is discontinued for good, not just temporarily out of stock, a 301 redirect to the most relevant replacement product or category preserves accumulated ranking value far better than letting the page simply disappear.
The difference between temporary and permanent needs a real decision
Treating every out-of-stock situation the same way, either always keeping pages live indefinitely or always redirecting immediately, misses the distinction that actually matters here.