Actions85
- Instances Actions
- Client Actions
- Message Actions
- Chat Actions
- Contact Actions
- Number Actions
- Group Actions
- Channel Actions
- Label Actions
- Story Actions
Overview
This node operation allows you to delete a specific message by its unique identifier from a messaging platform via the WaAPI API. It is useful in scenarios where you want to programmatically remove messages either for yourself or for all participants in a chat or group. For example, you might use this to automate message cleanup, retract sent messages, or manage content moderation.
Properties
| Name | Meaning |
|---|---|
| Id | Instance ID (a required numeric identifier for the operation instance). |
| Message Id | The serialized unique identifier of the message to delete. This typically encodes sender info, chat/group ID, and message hash. |
| For Everyone | Boolean flag indicating whether to delete the message for all users (true) or just for yourself (false). Defaults to true. |
Output
The output JSON will contain the response from the WaAPI API after attempting to delete the specified message. This typically includes confirmation of deletion status or error details if the operation failed. There is no binary data output for this operation.
Dependencies
- Requires an active connection to the WaAPI API service.
- Needs an API key credential configured in n8n for authentication with the WaAPI endpoint.
- The base URL for requests is
https://waapi.app/api/v1. - The node sends JSON-formatted requests and expects JSON responses.
Troubleshooting
- Common issues:
- Invalid or malformed
Message Idcan cause the API to reject the request. - Insufficient permissions or invalid API credentials will result in authentication errors.
- Attempting to delete a message that does not exist or has already been deleted may return an error or no-op response.
- Invalid or malformed
- Error messages:
- Authentication failures: Check that your API key credential is correctly set up and valid.
- "Message not found" or similar: Verify the
Message Idis correct and corresponds to an existing message. - Permission denied errors when
For Everyoneis true: Your account or API key may lack rights to delete messages for all users; try settingFor Everyoneto false.
Links and References
- WaAPI Official Documentation (for detailed API usage and message ID formats)
- n8n Documentation (for general node usage and credential setup)