Evolution API Plus icon

Evolution API Plus

Interact with Evolution API

Chat → Deletar Mensagem

AI-generated

Summary

Delete a message from a chat in the specified instance by providing the chat contact, message ID, and sender details.

Inputs

  • Nome Da Instância (required) — Specify the name of the instance from which to delete the message.
  • Contato (required) — Provide the contact number (remoteJid) identifying the chat where the message exists.
  • ID Da Mensagem (required) — Input the unique ID of the message to be deleted.
  • Mensagem É Minha (required) — Indicate whether the message to be deleted was sent by the instance (true or false).
  • Número Do Participante (required) — If the message was not sent by the instance (fromMe is false), specify the participant number who sent the message.

Output shape

a single JSON object indicating success or failure of the delete operation

The response typically confirms whether the message deletion succeeded; no pagination or additional data is returned.

Examples

Example 1: Delete a message sent by the instance itself

Set 'Nome Da Instância', 'Contato', 'ID Da Mensagem', and set 'Mensagem É Minha' to true. 'Número Do Participante' is not applicable.

Example 2: Delete a message sent by another participant

Set 'Nome Da Instância', 'Contato', 'ID Da Mensagem', 'Mensagem É Minha' to false, and provide 'Número Do Participante' representing the sender.

Links

Discussion