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

# Delete Custom Rule

> Permanently delete a customer-owned custom rule

Permanently delete a customer-owned custom rule and remove its sole
policy-import reference. Only `cust_*` definitions owned by the
authenticated customer can be deleted; YAML/system pack rules are rejected.

Deletion is rejected while the policy is pending review, training is in
progress, a trained adapter still references the policy, or multiple policy
imports reference the rule.

Requires a full-access API key.

## Path Parameters

**rule\_id** `string` *required*

Custom rule identifier (must be a `cust_*` definition)

## Response

Returns `204 No Content` with no body on success.

## Errors

| Status | Meaning |
| - | - |
| `400` | Rule is not a customer-owned `cust_*` definition |
| `403` | Forbidden — full-access API key required |
| `404` | Custom rule not found |
| `409` | Rule has conflicting policy or training references, or changed concurrently |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.