---
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, 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

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/versions/31dfe831e079/schema)
