1. Go to Product Data on the product page
2. Select Inventory and change stock status to Out of Stock
3. Edit the Catalog Visibility settings under the product settings
4. Change it to Hidden and select ok
5. Scroll down to Yoast SEO and select Advanced
6. At advanced select NO under “Allow search engines to show this Product in search results”?
* Make sure to update the product after completing the above steps.
* Step 5 & 6 is crucial in order to set a no-index for the page, so there is no direct links from google but links from other sites etc with still function.