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

# Delete message

`DELETE /session/{sessionID}/message/{messageID}`

Permanently delete a specific message (and all of its parts) from a session. This does not revert any file changes that may have been made while processing the message.

## Path parameters

- `sessionID` string, required
- `messageID` string, required

## Query parameters

- `directory` string
- `workspace` string

## Response `200`

Successfully deleted message

- 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)
