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

# Delete a rule by ID

> Hard-delete a rule. **Required scope:** admin

Hard-delete a rule.

**Required scope:** `admin`

### Path parameters

**id** `string` *required*

Rule id

### Response

No response body. Rule deleted.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Rule deleted |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | No such rule in this organization |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

```bash cURL theme={null}
curl --request DELETE \
  --url 'https://api.nsr.stateset.com/api/v1/rules/{id}' \
  --header "X-API-Key: $STATESET_NSR_API_KEY"
```


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