Skip to content
Last updated

Delete a rule (soft delete).

DELETEhttps://api.aitronos.com/v1/organizations/{organization_id}/rules/{rule_id}

Path Parameters

organization_id string required

Organization ID (org_ prefixed string) where the rule belongs.

rule_id string required

Rule ID with rule_ prefix.

Query Parameters

force boolean optional ยท Defaults to false

Force delete even if attachments exist. When true, also deletes all attachments and access rights.

Returns

Returns 204 No Content on successful deletion.

Access Control

Requires owner access to the rule.

Behavior

Performs a soft delete (sets is_deleted=true). Fails if attachments exist unless force=true is specified.

Bash
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
  }
}