---
title: "Delete Session"
method: DELETE
path: "/v1/finetune-agent/sessions/{session_id}"
tags: ["Finetune Agent", "agent-chat-sessions"]
---

# Delete Session

`DELETE /v1/finetune-agent/sessions/{session_id}`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/finetune-agent/sessions/{session_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/finetune-agent/sessions/:session_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

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-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/finetune-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.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
