Skip to main content
DELETE

Overview

You can delete messages from a chat for all participants. This works similar to the “Delete for Everyone” feature in WhatsApp.
Deleted messages cannot be recovered. This action is permanent for all chat participants.
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 the apikey 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.
For group messages, always include the participant field to specify who sent the message.
If the message is older than WhatsApp’s deletion time limit (approximately 2 days), the deletion will fail.