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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>",
"variant_id": "<variant_id>",
"confirm": "<confirm>"
},
"name": "delete_variant"
}
}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 |