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
Overview
This node integrates with the Wassenger WhatsApp API to manage WhatsApp chat messages. Specifically, the "Delete Message" operation under the "Chat Messages" resource allows users to delete a specific WhatsApp message by its ID from a given WhatsApp number (device). This is useful for scenarios where you want to programmatically remove messages either locally or revoke them for all participants within a certain time frame.
Practical examples include:
- Automatically deleting sensitive messages after processing.
- Cleaning up chat history by removing outdated or erroneous messages.
- Revoking sent messages within the allowed time window to prevent recipients from seeing them.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The identifier 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 deletion behaves: |
| - Clean Message Box | If enabled, deletes the message deletion information box from the chat list. |
| - Force Delete Locally | Forces deletion of the message locally even if it cannot be revoked on the receiver's side. |
| - Revoke for Everyone | Attempts to revoke and delete the message for everyone (only works within 60 minutes of sending). |
Output
The node outputs JSON data representing the result of the delete message operation. This typically includes confirmation of deletion status or any relevant metadata returned by the Wassenger API. There is no binary output associated with this operation.
Dependencies
- Requires an active connection to the Wassenger WhatsApp API via an API key credential.
- The node depends on the Wassenger service being accessible and properly configured in n8n with valid authentication.
- The WhatsApp number (device) must be registered and linked to the Wassenger account.
Troubleshooting
Common issues:
- Invalid or expired API key leading to authentication errors.
- Incorrect WhatsApp number or message ID causing the message not to be found.
- Attempting to revoke a message beyond the 60-minute limit will fail.
- Network connectivity problems preventing communication with the Wassenger API.
Error messages and resolutions:
- "Message not found": Verify the message ID and WhatsApp number are correct.
- "Unauthorized" or "Invalid API key": Check that the API key credential is valid and has proper permissions.
- "Revoke period expired": Ensure revocation attempts happen within 60 minutes of sending the message.
- "Force delete failed": If force deletion locally fails, confirm local device state and permissions.