Skip to main content
DELETE
/
v1
/
sessions
/
{session_id}
Delete Session
curl --request DELETE \
  --url https://identity.contra.id/v1/sessions/{session_id}
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.