message_delete
Delete a specific WhatsApp message from a chat, optionally for all participants and clear associated media.
Instructions
[Message] Delete a message from the chat
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>"
},
"name": "message_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | No | The chat id which contains the message | |
| everyone | No | If true and the message is sent by the current user or the user is an admin, will delete it for everyone in the chat. | |
| messageId | No | Unique WhatsApp identifier for the message | |
| sessionId | Yes | Unique identifier for the session (alphanumeric and - allowed) | |
| clearMedia | No | If true, any associated media will also be deleted from a device |