> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linquid.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Rule

> Soft-delete a rule after detaching it from links

<ParamField path="ruleId" type="string" required>
  Rule identifier
</ParamField>

## Access

* Permission: `rules:delete`

Behavior:

* Rule is soft-deleted.
* Deletion is blocked while rule is attached to any links (direct or via junctions).
* API returns attached link references when blocked.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.linquid.io/api/rules/rule_def456 \
    -H "Authorization: Bearer <token>"
  ```
</RequestExample>

## Common Errors

* `400`: `RULE_IN_USE` (detach from links first)
* `404`: rule not found
