Delete variant
delete_variantDelete a product variant by id. The variant moves to the bin and restore_deleted brings it back on the same product; to create or edit a variant instead use save_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": {
"productid": "<productid>"
},
"name": "delete_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Id of the variant to delete. Required in practice. | |
| productid | Yes | Id of the parent product the variant belongs to (required). |