How to temporarily remove a product variant without losing data

We have an issue where we are out of stock in a variant, so want to remove it from our store and our other sales channel feeds. I want to know if there’s a way to temporarily delete a variant without losing any historical sales data from that variant.

The main issue is that we can’t remove a variant from our Google feed, so the product is marked as OOS on our store, but not in the Shopping feed as we don’t use Shopify inventory tracking.

This answer is purely for Google Merchant Center. There is no need to remove out of stock products, as they are automatically no longer going to be advertised. Google will only show in stock products.

Simply set the product as out of stock in Shopify and it will update in the feed.