Delete a WhatsApp message
delete_messageDelete or retract a WhatsApp message for everyone within two days or remove it from linked devices only; confirm with the user before proceeding.
Instructions
Delete a message; confirm with the user first. for_everyone: true retracts it for everyone within 2 days: the account's own message, or anyone's in a group where it is admin. for_everyone: false removes any message from the linked account's devices only.
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": {
"message_id": "<message_id>",
"for_everyone": "<for_everyone>"
},
"name": "delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | ||
| message_id | Yes | ||
| for_everyone | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| message_id | Yes | ||
| for_everyone | Yes |