To hide or remove sold-out variants, you can use a Shopify app or custom code. Some apps automatically hide sold-out variants, while others allow you to set conditions for hiding them. Alternatively, you can modify your theme's Liquid code to prevent sold-out variants from being displayed or selectable by customers. Be sure to back up your theme before making any changes to the code.