delete_message
Delete a WhatsApp message for all participants or only from your own devices. Both scopes are permanent, and choosing for_everyone shows others a deleted-message notice.
Instructions
Delete a message for everyone or only for this account; neither can be undone. for_everyone (the default) revokes it, so participants see a message was deleted notice (your own messages, or any message as a group admin); for_me removes a cached message from your own devices through WhatsApp app state while other participants keep it, and hides it from this server's cache reads without removing the row. Use edit_message to correct text instead. Omitting scope returns plain text. An explicit scope returns JSON {scope, chat_jid, message_id, outcome, reversible, message}, where outcome is sent (WhatsApp accepted it), refused (nothing was sent) or unknown (the send call returned an error, so it may or may not have taken effect; check the phone instead of retrying), flagged as an error unless sent.
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": {
"chat_jid": "<chat_jid>",
"message_id": "<message_id>"
},
"name": "delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | `for_everyone` (default) revokes the message for all participants; `for_me` deletes it from this account's devices only and requires the message to be in the local cache | |
| chat_jid | Yes | WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us` | |
| message_id | Yes | WhatsApp message ID of the message to delete (use `message_id` from list_messages) | |
| sender_jid | No | JID of the original sender; with `for_everyone`, required when deleting someone else's message as a group admin and empty for your own; ignored with `for_me`, which reads the sender from the cache (WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us`) |