---
title: "Delete Session"
method: DELETE
path: "/api/chat/sessions/{session_id}"
tags: ["v2", "chat", "chat"]
---

# Delete Session

`DELETE /api/chat/sessions/{session_id}`

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.

## Path parameters

- `session_id` string, required

## Response `204`

Successful Response

## Other responses

- `401` — Authentication required
- `404` — Session not found or access denied
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
