Here are two ways to hide selective product variants:
1. Use a third-party app
There are third-party applications that provide you with the opportunity to hide some products that are longer in stock. Use this application to do the hard work for you.
2. Using a hack
Go to the backend of your store and follow the undermentioned steps:
Open the variant edit page
Select “Track Quantity” in the Inventory Section
Uncheck the “Continue selling when out of stock” tab
Set “Available” to 0 under QUANTITY (appears after Tracking quantity)
Thanks for getting back!
To clarify, do you want to remove or just hide it from options? Please reply back as soon as possible so that we can continue on.
If I’m not too late and you are still trying to hide “Specific” variants regardless of inventory quantity, you are welcome to try our app Camouflage which does exactly the same. As far as I know, there is no other readymade solution available.
To build your own solution, you can create a metafield on variants to mark the variant sold out/unavailable and read that metafield into the theme to hide them. You’ll need Javascript to handle all these in the frontend.
Please let me know if you’ve any further questions