---
title: "Delete Session"
method: DELETE
path: "/api/chat/sessions/{session_id}"
tags: ["Chat"]
---

# Delete Session

`DELETE /api/chat/sessions/{session_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/chat/sessions/{session_id}`
- Auth: HTTP bearer

Delete a chat session and all its messages.

Idempotent: returns 200 even if session was already deleted
(prevents double-tap race condition on mobile).

## Path parameters

- `session_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
