Actions24
- Mensagem Actions
- Opções de Mensagem Actions
- Grupo Actions
- CRM Actions
Opções de Mensagem → Deletar Mensagem
AI-generatedSummary
Delete a message from a chat using the specified Message ID and Chat ID, optionally deleting it for everyone in the chat.
Inputs
- Message ID (required) — The unique identifier of the message to be deleted.
- Chat ID (required) — The identifier of the chat where the message resides, e.g., '5511999999999@s.whatsapp.net' or a group ID ending with '@g.us'.
- For Everyone (required) — Boolean flag indicating whether to delete the message for everyone in the chat or just for the user.
Output shape
a single response object containing the API's deletion status or confirmation JSON object.
The operation sends a DELETE request to the '/message/delete' API endpoint with the parameters 'messageId', 'chatId', and 'forEveryone'. The response from the API is returned as output.
Examples
Example 1: Delete a specific message for everyone in the chat
Provide 'messageId' with the target message's ID, 'chatId' with the chat's identifier, and set 'forEveryone' to true.