Overview
This node integrates with the Wuzapi WhatsApp API to perform various chat-related operations. Specifically, the Delete Message operation allows users to delete a message they have previously sent on WhatsApp by specifying its unique message ID.
Common scenarios where this node is beneficial include:
- Automatically removing sensitive or incorrect messages from a chat.
- Managing message lifecycle in automated workflows.
- Moderating content by deleting inappropriate messages programmatically.
For example, you could use this node in an automation that detects certain keywords in messages and deletes those messages automatically to maintain chat quality.
Properties
| Name | Meaning |
|---|---|
| Message ID | ID of the message to delete |
The Message ID property is required for the Delete Message operation and expects the unique identifier of the message you want to remove.
Output
The output JSON contains the response from the Wuzapi WhatsApp API after attempting to delete the specified message. It typically includes confirmation details about the deletion status.
Example output structure (simplified):
{
"success": true,
"message": "Message deleted successfully",
"Id": "3EB06F9067F80BAB89FF"
}
No binary data is produced by this operation.
Dependencies
- Requires an active connection to the Wuzapi WhatsApp API.
- The node needs an API key credential configured in n8n to authenticate requests to the Wuzapi service.
- Network access to the Wuzapi endpoints is necessary.
Troubleshooting
- Invalid Message ID: If the provided message ID does not exist or is incorrect, the API may return an error indicating the message was not found. Verify the message ID before running the node.
- Authentication Errors: Ensure the API key credential is valid and has sufficient permissions to delete messages.
- Network Issues: Connectivity problems can cause request failures. Check your network and proxy settings if applicable.
- Permission Denied: The API might reject deletion if the message was not sent by the authenticated user or if deletion rights are restricted.
If the node throws an error, enabling "Continue On Fail" will allow the workflow to proceed while capturing the error message in the output for debugging.
Links and References
- Wuzapi WhatsApp API Documentation (for detailed API usage and message deletion specifics)
- n8n Documentation - Creating Custom Nodes