Actions17
- Chat Actions
- Contato Actions
- Grupo Actions
- Mensagem Actions
Mensagem → Deletar
AI-generatedSummary
Delete a specific WhatsApp message from a given session and recipient phone number, optionally deleting it for everyone and executing asynchronously.
Inputs
- ID Da Sessão (required) — Specify the session ID from which to delete the message.
- Telefone (required) — Provide the phone number of the message recipient.
- ID Da Mensagem (required) — Provide the ID of the message to be deleted.
- Assíncrono — Optionally execute the delete operation asynchronously.
- Para Todos — Optionally delete the message for everyone, not just the local session.
Output shape
a single record containing the API response confirming deletion; usually JSON.
The operation returns the deletion confirmation from the D-API service. Errors raise exceptions unless 'continueOnFail' is enabled, in which case error details are returned as JSON.
Examples
Example 1: Delete a message with ID '12345' from session 'mySession' sent to phone '+5511999999999' for everyone synchronously.
Set 'ID Da Sessão' to 'mySession', 'Telefone' to '+5511999999999', 'ID Da Mensagem' to '12345', 'Para Todos' to true, and leave 'Assíncrono' as false.