Delete variant
delete_variantIrreversibly deletes a product variant from Medusa after exact SKU or title confirmation; its inventory item is removed by default if none are reserved.
Instructions
DELETES one variant of a product. Irreversible – confirm with the user first. 'confirm' must equal the variant's SKU (or its title when it has no SKU). By default its inventory item is deleted too (only when nothing is reserved).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | The variant's exact SKU, or title when it has no SKU | |
| product_id | Yes | ||
| variant_id | Yes | ||
| delete_inventory_items | No |