Evolution API icon

Evolution API

Interact with Evolution API

Actions114

Chat → Delete Message

AI-generated

Overview

This node operation deletes a specific message in a chat instance using the Evolution API. It is useful for scenarios where you need to remove messages from a conversation, such as correcting mistakes, removing sensitive information, or managing chat history.

Use Case Examples

  1. Deleting a mistakenly sent message in a customer support chat.
  2. Removing a message containing outdated information from a group chat.

Properties

Name Meaning
Instance Name The name of the chat instance where the message exists.
Contact The contact number associated with the chat from which the message will be deleted.
Message ID The unique identifier of the message to be deleted.
Message Is Mine Indicates if the message was sent by the instance itself (true) or by another participant (false).
Participant Number The number of the participant who sent the message, required only if the message was not sent by the instance.

Output

JSON

  • success - Indicates whether the message deletion was successful.
  • messageId - The ID of the message that was deleted.

Dependencies

  • Requires an API key credential for the Evolution API to authenticate requests.

Troubleshooting

  • Ensure the instance name and contact number are correctly specified to avoid errors related to invalid chat references.
  • Verify that the message ID is correct and exists in the chat to prevent 'message not found' errors.
  • If 'Message Is Mine' is false, ensure the participant number is provided; otherwise, the deletion request may fail.
  • Check API authentication credentials if the node throws authorization errors.

Discussion