---
title: "Delete session"
method: DELETE
path: "/api/session/{session_id}"
tags: ["Sessions"]
---

# Delete session

`DELETE /api/session/{session_id}`

Permanently deletes a session and its conversation history.

## Path parameters

- `session_id` string, required

## Response `200`

Session deleted

- object
  - `message` string
  - `session_id` string

## Other responses

- `401` — API key required
- `403` — Invalid API key

## Changes

- **2026-04-06** `1b4365f47b75` — 1 warning, 3 info
  - removed the optional property `request_id` from the response with the `200` status
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - removed the non-success response with the status `400`
- **2026-03-17** `2486dd6cc627` — 4 info
  - added the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `403`
  - added the optional property `request_id` to the response with the `200` status

[Change history](https://skmtc.dev/elixpo/apis/lixsearch-api/changes/api/session/:session_id/delete.md)

---

[API](https://skmtc.dev/elixpo/apis/lixsearch-api.md) · [All operations](https://skmtc.dev/elixpo/apis/lixsearch-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elixpo/lixsearch-api/revisions/c3fcd0edadf8/schema)
