Actions90
- Sessions Actions
- Messages - Sending Actions
- Chats Actions
- Messages - Actions Actions
- Groups Actions
- List Groups
- Group Info
- Get Invite Link
- Revoke Invite Link
- Join via Link
- Preview via Link
- Create Group
- Leave Group
- Delete Group
- Update Group Name
- Update Group Description
- Toggle Announcement Mode
- Lock Group Edits
- List Participants
- Add Participants
- Remove Participants
- Promote Participants
- Demote Participants
- Approve Join Request
- Reject Join Request
- List Join Requests
- Get Group Picture
- Set Group Picture
- Delete Group Picture
- Profile Actions
- Server Actions
- Miscellaneous Actions
Messages - Actions → Delete Message
AI-generatedOverview
This node operation deletes a specific message in a WhatsApp session using the WARest WhatsApp REST API. It is useful for automating message management tasks such as removing unwanted or erroneous messages from chats. For example, it can be used in workflows to automatically delete messages based on certain triggers or conditions.
Use Case Examples
- Automatically delete a message after a certain time period.
- Remove messages containing sensitive information from a chat.
Properties
| Name | Meaning |
|---|---|
| Session | The WhatsApp session from which the message will be deleted. This can be selected from a list of active sessions or entered manually as a session ID. |
| Recipient / Chat (to) | The phone number or JID of the chat or recipient where the message to be deleted is located. It can be a single or comma-separated list of recipients. |
| Message ID | The unique identifier of the message to be deleted within the chat. |
| Additional Fields | Optional parameters for the delete operation, including whether to delete the media blob associated with the message and whether to delete the message for the current account as well. |
Output
JSON
json- The response from the WARest API after attempting to delete the message, typically indicating success or failure.
Dependencies
- Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.
Troubleshooting
- Ensure the session ID is valid and active; an invalid session will cause the operation to fail.
- Verify the message ID is correct and exists in the specified chat; otherwise, the delete operation will not succeed.
- Check API credentials and network connectivity to the WARest server to avoid authentication or connection errors.
Links
- WARest GitHub Repository - Official repository for the WARest WhatsApp REST API used by this node.
