---
title: "End a session"
method: DELETE
path: "/api/messaging/sessions/{sessionId}"
tags: ["messaging"]
---

# End a session

`DELETE /api/messaging/sessions/{sessionId}`

End an active session and optionally archive its data

## Path parameters

- `sessionId` string, required

## Response `200`

Session ended successfully

- object
  - `message` string

## Other responses

- `404` — Session not found
- `500` — Internal server error

---

[API](https://skmtc.net/elizaos/apis/eliza-os-api.md) · [All operations](https://skmtc.net/elizaos/apis/eliza-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elizaos/eliza-os-api/revisions/f43280bfdb0c/schema)
