delete_promo_rule
Permanently delete a promo rule and all its associated promo codes. This action is irreversible.
Instructions
Permanently delete a promo rule and all its associated promo codes. Irreversible.
Side effect: every promo code attached to this rule is also deleted and stops working at checkout. Use update_promo_rule with enabled=false to disable a rule without deleting its codes.
Returns 404 if store_id or promo_rule_id is invalid.
Args: store_id: E-commerce store ID. promo_rule_id: Rule ID to delete.
Returns: JSON with status ('deleted'), store_id, promo_rule_id on success.
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": {
"store_id": "<store_id>",
"promo_rule_id": "<promo_rule_id>"
},
"name": "delete_promo_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| store_id | Yes | ||
| promo_rule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |