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

# Delete Session

`DELETE /mle-agent/sessions/{session_id}`

Delete a chat session and all its messages.

Args:
    request: FastAPI request used by the rate-limiter.
    session_id: Chat session primary key.
    auth: Authenticated caller.
    service: Chat-session service.

Returns:
    ChatSessionDeleteResponse confirming deletion.

Raises:
    HTTPException: 404 when the session is missing or not owned.

## Path parameters

- `session_id` string, uuid, required

## Response `200`

Successful Response

- ChatSessionDeleteResponse — Response model for deleting a session.
  - `success` boolean, required
  - `message` string, required
  - `session_id` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-19** `b92f75fd3b61` — 1 breaking
  - for the `path` request parameter `session_id`, the type/format was changed from `string`/`` to `string`/`uuid`

[Change history](https://skmtc.dev/pioneer/apis/brain-api/changes/mle-agent/sessions/:session_id/delete.md)

---

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