> ## 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.

# Soft delete a rule (archives for audit trail)

> Soft-delete (tombstone) a rule. **Required scope:** admin

Soft-delete (tombstone) a rule.

**Required scope:** `admin`

### Path parameters

**id** `string` *required*

Rule ID

### Request body

`SoftDeleteRequest`

**reason** `string`

Reason for deletion (for audit trail)

### Response

No response body. Rule soft deleted.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Rule soft deleted |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Rule not found |
| `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}/soft' \
  --header "X-API-Key: $STATESET_NSR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "reason": "Two-person tent, green — replacement for damaged pole set."
}'
```


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