delete_variant
Delete a specific product variant by providing the product ID and variant ID. Ensure the product retains at least one variant after deletion.
Instructions
Delete a product variant. A product must always have at least one variant.
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>"
},
"name": "delete_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | The numeric Shopify product ID. | |
| variant_id | Yes | The numeric variant ID to delete. |