---
title: "Delete a message"
method: POST
path: "/bot/deleteMessage"
tags: ["Bot"]
---

# Delete a message

`POST /bot/deleteMessage`

Deletes a message from a private conversation or chat. Returns an empty result when the message is deleted.

## Headers

- `authorization` string, required

## Request body

- DeleteMessageInput — Parameters for deleting a message. Exactly one target field is required.
  - `user_id` integer — Target a private conversation with this user. Supply exactly one of user_id or chat_id.
  - `chat_id` integer — Target this chat. Supply exactly one of chat_id or user_id.
  - `message_id` integer, required — Message to delete in the target chat.

## Response `200`

Successful response for an action with no return value.

- BotEmptySuccess — Successful response for an action with no return value.
  - `ok` true, required — Always true for a successful request.
  - `result` object, required — Method-specific response payload.

## Other responses

- `400` — The request parameters are missing or invalid.
- `401` — The bot token is missing or invalid.
- `403` — The bot is not allowed to perform this action.
- `404` — The requested method or resource was not found.
- `500` — The server could not complete the request.

## Changes

> 6 revisions in range; 4 could not be searched.

- **2026-07-26** `d80f3b8927b8` — 27 breaking, 5 warning, 20 info
  - the `header` request parameter `authorization` became required
  - added `#/components/schemas/ChatId, subschema #2` to the `chat_id` request property `allOf` list
  - added `#/components/schemas/MessageId, subschema #2` to the `message_id` request property `allOf` list
  - added `#/components/schemas/UserId, subschema #2` to the `user_id` request property `allOf` list
  - …48 more

[Change history](https://skmtc.dev/inline/apis/inline-bot-http-api-docs/changes/bot/deleteMessage/post.md)

---

[API](https://skmtc.dev/inline/apis/inline-bot-http-api-docs.md) · [All operations](https://skmtc.dev/inline/apis/inline-bot-http-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inline/inline-bot-http-api-docs/revisions/69017b8dc5fe/schema)
