Chat
Delete message
Revokes a message for everyone or deletes it only on your side
DELETE
Delete message
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: partially
Deletes a specific message in two modes:
- For everyone (
deleteForEveryone: true), revokes on WhatsApp; “This message was deleted” appears for everyone.delete_type: "revoke". - Only for me (
deleteForEveryone: false, default), deletes only locally on your devices. Recipients keep seeing it.delete_type: "delete_for_me".
Examples
For everyone (revoke)
Revokes the message on WhatsApp withdeleteForEveryone: true. Replaces the content with “This message was deleted” for every participant in the conversation, subject to the roughly 2-day-and-12-hour window after sending.
Only for me
WithdeleteForEveryone: false, the message disappears only from your linked devices (synced via AppState). The recipient keeps seeing the original content normally.
Success response
- Revoke
- Delete for me
200 OK
Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.
Request body
ID of the message to delete.
true revokes for everyone (delete_type: "revoke"); false deletes only locally (delete_type: "delete_for_me").Notes
- Revoke triggers a
message.exchangeevent withtype: "message_revoke"on the webhook/WebSocket. - Delete for me syncs via AppState with your other linked devices, but does not notify the recipient.
- If the operation is repeated on an already revoked message, WhatsApp returns an error.
Error responses
| HTTP | error.message | When |
|---|---|---|
| 400 | Invalid request body | Malformed JSON. |
| 400 | MessageID is required | Missing field. |
| 401 | Invalid token | Missing/invalid token. |
| 404 | Instance not found | Instance does not exist. |
| 404 | message not found | messageId is not in the database. |
| 503 | Instance is not connected to WhatsApp | No active session. |