---
title: "Delete session"
method: DELETE
path: "/session/{sessionID}"
---

# Delete session

`DELETE /session/{sessionID}`

Delete a session and permanently remove all associated data, including messages and history.

## Path parameters

- `sessionID` string, required

## Query parameters

- `directory` string
- `workspace` string

## Response `200`

Successfully deleted session

- boolean

## Other responses

- `400` — Bad request
- `404` — Not found

---

[API](https://skmtc.net/kaaass/apis/opencode.md) · [All operations](https://skmtc.net/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kaaass/opencode/versions/8bb9a15bd144/schema)
