> ## 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 an entity (archives for audit trail)

> Soft-delete (tombstone) an entity. **Required scope:** admin

Soft-delete (tombstone) an entity.

**Required scope:** `admin`

### Path parameters

<ParamField path="id" type="string" required>
  Entity ID
</ParamField>

### Request body

`SoftDeleteRequest`

<ParamField body="reason" type="string">
  Reason for deletion (for audit trail)
</ParamField>

### Response

No response body. Entity soft deleted.

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Entity soft deleted                                |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Entity not found                                   |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api.nsr.stateset.com/api/v1/entities/{id}/soft' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "reason": "Two-person tent, green — replacement for damaged pole set."
  }'
  ```
</RequestExample>
