<p>This answer is preliminary – see my comment asking for clarification.</p>
<p>It really depends on what you want. Do you want the product page …</p>
<ol>
<li>… not to be available in Google's index any more?</li>
<li>… not to be discoverable on the website (e.g. through a product search page)?</li>
<li>… not to be accessible by direct URL?</li>
</ol>
<p>If the answer is yes to all three, simply delete the product page or disable it. It won't show up in any search results on the website anymore and the direct URL will lead to a 404, so it will quickly vanish from Google's index.</p>
<p>If the answer is more complicated, you can take different measures depending on the intended result:</p>
<ul>
<li><strong>The page should be removed from Google's index:</strong> Simply add a metatag to your sold product pages (<code>&lt;meta name=&quot;robots&quot; content=&quot;noindex, nofollow&quot;&gt;</code>) and remove it from the sitemap. It will vanish from Google's search results in time.</li>
<li><strong>The page should not be discovable on the website (but still accessible via Google or direct link):</strong> Modify your product search pages / feeds to not display sold items anymore (you can determine the status based on stock, a lightswitch field, or whatever makes sense for your business process).</li>
<li><strong>The page should rank lower in Google search results</strong>: <s>Keep it in the sitemap, but give it a very low <a href="https://www.sitemaps.org/protocol.html" rel="nofollow noreferrer">priority</a> (like <code>0.1</code>). This will signal to Google that you don't consider this page important, so it will show up less often.</s> Edit: As pointed out by RitterKnight in the comments, Google <a href="https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap#sitemapformat" rel="nofollow noreferrer">ignores the priority</a> completely. Pretty annoying, but it might still be worth including the priority for other search engines that don't ignore it. Guess it's all or nothing with Google.</li>
</ul>
<p>Mix and match the above as required. The simplest approach would be to disable the page entirely. Again, it depends a bit on what you actually want ot achieve.</p>

CC BY-SA 4.0
2021-08-26T16:16:10.983Z
Hi Moritz, thanks for helping. It's point 1 and 2, and it should be accessible by direct URL. I wanted to create a 404 heading and wasn't sure how to do this. But your solution is much more what I was really looking for: noindex, nofollow. I really formulated my question like a moron... Today wasn't my day! Thanks for bringing order to my chaos! I really appreciate!
outline4
CC BY-SA 4.0
2021-08-26T20:00:24.037Z
FYI Google generally [ignores](https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap#general-guidelines) the priority tag in the sitemap. If you want the product to disappear faster, also consider using http status code 410 (gone) instead of 404.  There's also some schools of thought of keeping the old page around and not erring out and/or redirect users to replacement products.
RitterKnight
CC BY-SA 4.0
2021-08-27T07:27:22.850Z
Glad I could help! :) @RitterKnight Thanks for pointing that out, good to know! I really dislike how Google always think they know everything better than everybody else ...
MoritzLost
CC BY-SA 4.0
2021-08-26T12:51:54.227Z
2021-08-27T07:26:25.337Z
2021-08-27T07:26:25.337Z
MoritzLost
<p>I wonder what's best practice for products that are sold?</p>
<p>My strategy is to add a lightswitch &quot;sold&quot; and don't display sold products on the website and in the sitemap.xml, in the hopes that google will eliminate it some day.</p>
<p>Maybe there's a way to tell google that it should eliminate this product from its index? But I don't know if that is even possible.</p>
<p>To be clear: I want the product to slowly disappear from googles index but still displaying it for people who find it through google (until it's vanished) or access it by direct url.</p>
<p>How do you handle this?</p>
<p>Edit: cleared the 404 header part since it was misleading. Made last sentence a bit clearer.</p>

CC BY-SA 4.0
2021-08-26T12:34:54.740Z
What exactly do you want to achieve? Your last sentence doesn't make sense – either the product page is in Google's index or it isn't. If it isn't in the index, it can't be found through Google at all. Do you want the product gone from search results but still accessible by direct URL? Or something else?
MoritzLost
CC BY-SA 4.0
2021-08-26T16:17:03.610Z
You've answered everything I wanted to know and more! Thanks!
outline4
<templating><entries><url><error-handling>
What's the best strategy for products that are sold?
# What's the best strategy for products that are sold?

(Asked by: username_0 on 2021-08-26)

I wonder what's best practice for products that are sold?

My strategy is to add a lightswitch "sold" and don't display sold products on the website and in the sitemap.xml, in the hopes that google will eliminate it some day.

Maybe there's a way to tell google that it should eliminate this product from its index? But I don't know if that is even possible.

To be clear: I want the product to slowly disappear from googles index but still displaying it for people who find it through google (until it's vanished) or access it by direct url.

How do you handle this?

Edit: cleared the 404 header part since it was misleading. Made last sentence a bit clearer.

**Tags:** templating, entries, url, error-handling

> **Comments:**
> **username_1**: What exactly do you want to achieve? Your last sentence doesn't make sense – either the product page is in Google's index or it isn't. If it isn't in the index, it can't be found through Google at all. Do you want the product gone from search results but still accessible by direct URL? Or something else?  
> **username_0**: You've answered everything I wanted to know and more! Thanks!  

---

## 1 answers

### Answer by username_1 on 2021-08-26. Score: 2 | Accepted answer

This answer is preliminary – see my comment asking for clarification.

It really depends on what you want. Do you want the product page …

1. … not to be available in Google's index any more?
2. … not to be discoverable on the website (e.g. through a product search page)?
3. … not to be accessible by direct URL?

If the answer is yes to all three, simply delete the product page or disable it. It won't show up in any search results on the website anymore and the direct URL will lead to a 404, so it will quickly vanish from Google's index.

If the answer is more complicated, you can take different measures depending on the intended result:

* **The page should be removed from Google's index:** Simply add a metatag to your sold product pages () and remove it from the sitemap. It will vanish from Google's search results in time.
* **The page should not be discovable on the website (but still accessible via Google or direct link):** Modify your product search pages / feeds to not display sold items anymore (you can determine the status based on stock, a lightswitch field, or whatever makes sense for your business process).
* **The page should rank lower in Google search results**: ~~Keep it in the sitemap, but give it a very low [priority](https://www.sitemaps.org/protocol.html) (like `0.1`). This will signal to Google that you don't consider this page important, so it will show up less often.~~ Edit: As pointed out by username_2 in the comments, Google [ignores the priority](https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap#sitemapformat) completely. Pretty annoying, but it might still be worth including the priority for other search engines that don't ignore it. Guess it's all or nothing with Google.

Mix and match the above as required. The simplest approach would be to disable the page entirely. Again, it depends a bit on what you actually want ot achieve.

> **Comments:**
> **username_0**: Hi Moritz, thanks for helping. It's point 1 and 2, and it should be accessible by direct URL. I wanted to create a 404 heading and wasn't sure how to do this. But your solution is much more what I was really looking for: noindex, nofollow. I really formulated my question like a moron... Today wasn't my day! Thanks for bringing order to my chaos! I really appreciate!  
> **username_2**: FYI Google generally [ignores](https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap#general-guidelines) the priority tag in the sitemap. If you want the product to disappear faster, also consider using http status code 410 (gone) instead of 404.  There's also some schools of thought of keeping the old page around and not erring out and/or redirect users to replacement products.  
> **username_1**: Glad I could help! :) @username_2 Thanks for pointing that out, good to know! I really dislike how Google always think they know everything better than everybody else ...  

---

