Delete WhatsApp Message
whatsapp_delete_messageDelete a sent message from a WhatsApp chat, removing it for all participants with a confirmation.
Instructions
Delete (unsend) a message from a contact's chat.
Removes the message for everyone. WhatsApp shows "This message was deleted" in its place.
Args:
contactId: Contact id: phone digits for a person (e.g. "5521986910666"; survives @c.us↔@lid flips), or a group JID "*@g.us". Look up via whatsapp_list_contacts.
messageId: Message ID to delete
Returns confirmation of deletion.
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": {
"contactId": "<contactId>",
"messageId": "<messageId>"
},
"name": "whatsapp_delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contactId | Yes | Contact id: phone digits for a person (e.g. "5521986910666"; survives @c.us↔@lid flips), or a group JID "*@g.us". Look up via whatsapp_list_contacts. | |
| messageId | Yes | Message ID to delete |