Delete product variant
The Delete product variant action deletes the provided product variant.
The Delete product variant action has a hidden field added to it by the trigger. This field, Variant ID, identifies the variant to delete. The variant ID is set by default and can't be changed.
The Delete product variant action can be used in workflows that have a Get product variant data action, or any triggers that contain a product or a variant, such as:
- Product variant added
- Inventory quantity changed
- Product variant back in stock
- Product variant out of stock updated
In this example workflow, a product variant is deleted when it has been out of stock for a week.
To learn more, review the productVariantDelete mutation.