WhatsApp unofficial API: delete a message
TL;DR
About
Most people want this a minute after sending something to the wrong chat. Say you sent a client the wrong invoice PDF an hour ago. Your agent pulls the last 20 messages, finds that bubble and deletes it for everyone, so the client sees a deleted-message placeholder instead of the file. In a group where you are an admin, the same call removes a member's spam link. Everyone is only offered for about two days after sending, and an admin deleting someone else's message gets an extra warning that the author will see who did it. After the click, the run checks that the message no longer appears in the chat. For scope me it also waits 12 seconds and reloads, because a local delete can come back if it has not been saved yet. Deleting is permanent, so confirm with the user before using everyone.
Input
scope required"everyone" removes it for all participants: your own recent messages, or any member's message in a group you administer. "me" removes it from your own view only.
messageId requiredThe message's id, as get_conversation, get_inbox or send_message returns it.
Output
scope requireddeleted requiredTrue once the app shows the message deleted at that scope.
messageId requiredchatId optionalExample output
Shape only: placeholder values generated from the output schema, not a real run.
{
"scope": "…",
"chatId": "abc123",
"deleted": true,
"messageId": "abc123"
}