Delete Message
wa_delete_messageDelete a WhatsApp message for everyone. WhatsApp has no true delete for a peer that already has the message locally — this revokes it, which every modern client honours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | the chat the message is in — a phone number or a group/channel JID | |
| sender | No | group chats only, admin accounts: the phone number or JID of whoever sent the message being deleted; omit for your own message | |
| account_id | No | the account, as returned by wa_list_accounts; omit it when the workspace has only one account | |
| message_id | Yes | WhatsApp's id for the message, as returned by wa_send_message or seen in wa_list_messages |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ok (the operation succeeded) or refused (nothing was done) | |
| refusal | No | present only when status is refused | |
| new_message_id | No | WhatsApp's id for the react/edit/revoke protocol message itself |