Delete a rule in a ruleset
Deletes a single rule in a ruleset at the account or zone level.
Use one of the following API endpoints:
| Operation | Method + Endpoint |
|---|---|
| Delete an individual rule (account) | DELETE /accounts/{account-id}/rulesets/{ruleset-id}/rules/{rule-id} |
| Delete an individual rule (zone) | DELETE /zones/{zone-id}/rulesets/{ruleset-id}/rules/{rule-id} |
If the delete operation succeeds, the API method call returns a 200 OK HTTP status code with the complete ruleset in the response body.
Example
The following example deletes rule {rule-id-1} belonging to ruleset {ruleset-id}.Request
Response
The response includes the complete ruleset after deleting the rule.