v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
v2
chat
chat

Delete Session

Delete a chat session.

Permanently removes a chat session and all its messages. Only the owner can delete their sessions.

Args: session_id: The session ID to delete. user_id: The authenticated user's ID.

Returns: 204 No Content on success.

Raises: HTTPException: 404 if session not found or not owned by user.

delete/api/chat/sessions/{session_id}

Path parameters

session_idstring required

Response

Successful Response