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

# Delete Session

> Soft-delete a session — removes all associated personal data. The on-chain credential (if any) is unaffected.

```bash theme={null}
curl -X DELETE https://identity.contra.id/v1/sessions/$SID \
  -H "x-api-key: $CONTRA_KEY"
```

## Response · 204

No body.

### What's deleted

* Encrypted credential blob in KV
* Session metadata
* Node results
* Linked Smile/Didit images
* Webhook history

### What's preserved (required for compliance audit)

* The audit log entry (request ID, who deleted, when)
* The on-chain agent + tier (if the session reached `approved` and was anchored)
* The hash of the deleted credential (for non-repudiation)

For GDPR right-to-erasure, also call [Delete from on-chain](/concepts/on-chain-credential#deletion).
