Chats
Delete Message
Delete a message for everyone in a chat.
DELETE
Overview
You can delete messages from a chat for all participants. This works similar to the “Delete for Everyone” feature in WhatsApp.WhatsApp has a time limit for deleting messages (typically around 2 days). Messages older than this limit cannot be deleted for everyone.
Authentication
This endpoint requires authentication via theapikey header.
string
required
Your Evolution API key for authentication.
Path Parameters
string
required
The name of your WhatsApp instance.
Request Body
string
required
The unique message ID to delete.
string
required
The WhatsApp JID of the chat containing the message.
boolean
required
Whether the message was sent by you. Set to
true for messages you sent, false for received messages.string
For group chats only: the JID of the participant who sent the message. Required when deleting group messages.
Response
boolean
Confirmation that the message was deleted.
string
The ID of the deleted message.
Usage Notes
You can only delete messages that you sent (
fromMe: true). Attempting to delete messages sent by others will fail.