delete_price_rule
Remove a Shopify price rule or discount code using its numeric ID to clean up promotions.
Instructions
Delete a code discount by DiscountCodeNode ID. Preserves the legacy price-rule tool name for compatibility.
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": {
"price_rule_id": "<price_rule_id>"
},
"name": "delete_price_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price_rule_id | Yes | The numeric price rule ID to delete. |