Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
Chat Messages → Delete Message
AI-generatedOverview
This node enables deleting WhatsApp chat messages via the WaliChat API. It is useful for automating message management tasks such as removing unwanted or sensitive messages from a WhatsApp number's chat history. Typical scenarios include:
- Automatically cleaning up chat histories by deleting specific messages.
- Revoking sent messages within the allowed time window to prevent recipients from seeing them.
- Forcing local deletion of messages even if they cannot be revoked on the receiver’s side.
For example, you could use this node to delete a mistakenly sent message or to remove system-generated notifications from a chat.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) from which the message will be deleted. |
| Message ID | The unique hexadecimal ID of the WhatsApp message to delete. |
| Options | Additional options controlling how the message is deleted: |
| - Clean Message Box | Whether to delete the message deletion information box from the chat list (boolean). |
| - Force Delete Locally | Force deletion locally even if the message cannot be revoked on the receiver side (boolean). |
| - Revoke for Everyone | Attempt to revoke and delete the message for everyone (only works within 60 minutes of sending) (boolean). |
Output
The node outputs JSON data representing the result of the delete operation. This typically includes confirmation of deletion status or any error messages returned by the API.
No binary data output is produced by this node.
Dependencies
- Requires an active connection to the WaliChat WhatsApp API service.
- Needs an API key credential configured in n8n for authentication with the WaliChat API.
- The node depends on internal methods that handle the actual API calls to delete messages.
Troubleshooting
Common issues:
- Trying to revoke a message after the 60-minute window will fail because the API does not allow revocation beyond that time.
- Providing an incorrect WhatsApp number or message ID will cause the deletion to fail.
- Network or authentication errors may occur if the API key is invalid or connectivity is lost.
Error messages:
- Errors related to "message not found" indicate the message ID might be wrong or the message was already deleted.
- "Unauthorized" or "authentication failed" errors suggest problems with the API key credential.
- "Revoke failed" errors happen if trying to revoke a message outside the allowed timeframe.
To resolve these, verify input parameters, ensure the API key is valid, and confirm the message is eligible for deletion or revocation.
Links and References
- WaliChat API Documentation (hypothetical link)
- WhatsApp message revocation rules: Messages can only be revoked within 60 minutes of sending.