Delete a rule (soft delete).
DELETEhttps://api.aitronos.com/v1/organizations/{organization_id}/rules/{rule_id}
organization_id string required
Organization ID (org_ prefixed string) where the rule belongs.
rule_id string required
Rule ID with rule_ prefix.
force boolean optional ยท Defaults to false
Force delete even if attachments exist. When true, also deletes all attachments and access rights.
Returns 204 No Content on successful deletion.
Requires owner access to the rule.
Performs a soft delete (sets is_deleted=true). Fails if attachments exist unless force=true is specified.
Bash
- Bash
- Python
- JavaScript
curl -X DELETE https://api.aitronos.com/v1/rules/rule_abc123 \
-H "X-API-Key: $FREDDY_API_KEY"Response:
{
"success": true,
"message": "Rule deleted successfully",
"data": {
"id": "rule_abc123",
"deleted": true
}
}