---
title: "删除消息"
method: DELETE
path: "/messages/{session_id}/{id}"
tags: ["消息"]
---

# 删除消息

`DELETE /messages/{session_id}/{id}`

从会话中删除指定消息

## Path parameters

- `session_id` string, required
- `id` string, required

## Response `200`

删除成功

- object

## Other responses

- `500` — 服务器错误

## Changes

- **2025-12-22** `e625bcd5b8b9` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2025-12-16** `edf61e68559d` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/messages/:session_id/:id/delete.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/a5ce73ad8921/schema)
