---
title: "Archive Session"
method: DELETE
path: "/sessions/{session_id}"
---

# Archive Session

`DELETE /sessions/{session_id}`

Soft-delete a session by archiving it.

Sets ``archived_at`` on the session so it no longer surfaces in any read
path; all child data is preserved. The session must be owned by the
caller and in the IDLE state.

Response:
{
    "success": True,
    "message": "Session deleted successfully."
}

## Path parameters

- `session_id` string, required

## Response `200`

Successful Response

- DeleteSessionResponse — Response for delete_session endpoint.
  - `success` boolean, required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/traversal/apis/fastapi.md) · [All operations](https://skmtc.net/traversal/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/traversal/fastapi/revisions/2134ebffd1ef/schema)
