---
title: "Delete message in chat"
method: POST
path: "/rest/chat/{instance_key}/deleteMessage"
tags: ["ChatController"]
---

# Delete message in chat

`POST /rest/chat/{instance_key}/deleteMessage`

## Path parameters

- `instance_key` string, required

## Request body

- object
  - `messageData` DeleteMessageAndChat
    - `to` string
    - `key` object
    - `messageTimestamp` number

## Response `200`

Success

---

[API](https://skmtc.dev/megaapi/apis/documentation-megaapi.md) · [All operations](https://skmtc.dev/megaapi/apis/documentation-megaapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/megaapi/documentation-megaapi/revisions/09ca1205343e/schema)
