Deletes a business rule and removes it from every business ruleset it belongs to. This is a soft delete: the rule is no longer returned by the API or evaluated by Chargebee, but its id cannot be reused.
Impacts
Business rule
The rule is deleted along with its versions, and is no longer returned by Retrieve a business rule or List business rules.
Business rulesets
The rule is removed from every ruleset it belongs to, and is no longer returned by List rules in a business ruleset for those rulesets. The rulesets themselves and their remaining rules are not affected.
Implementation Notes
- Deletion cannot be undone. If you only need to stop the rule being evaluated, use Deactivate a business rule instead, which keeps the rule and its ruleset memberships intact.
- Call List rules in a business ruleset on the rulesets that contain the rule if you need to know which rules are left in them after the deletion.
Sample Request
Sample Result[JSON]
URL Format
POST https://[site].chargebee.com/api/v2/business_rules/{business-rule-id}/delete
Returns
Business rule object
The deleted business rule, as it stood immediately before deletion. It is no longer returned by Retrieve a business rule or List business rules.