Delete Product Variants
shopify_delete_variantsPermanently and irreversibly delete specified product variants and their inventory items. Use to remove unwanted options while keeping at least one variant per product.
Instructions
PERMANENTLY delete variants from a product, along with their inventory items. This CANNOT be undone.
A product must keep at least one variant — deleting all of them fails.
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>",
"variantIds": "<variantIds>",
"confirm": "<confirm>"
},
"name": "shopify_delete_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true — confirms this permanent deletion is intended | |
| productId | Yes | Product GID | |
| variantIds | Yes | Variant GIDs to delete |