Actions16
- Rooms Actions
- Create a new group chat
- Leave/Delete a group chat
- Get detail
- Update info
- Get members
- Change associated members
- Get messages
- Send message
- Get message detail
- Update the specified message
- Delete message
- Get tasks
- Get task detail
- Add a new task to the chat
- Get the list of files
- Get information about the specified file
Overview
This node integrates with the Chatwork API to manage chatrooms and their messages. Specifically, for the "Rooms" resource and the "Delete message" operation, it allows users to delete a specific message from a given chatroom by providing the chatroom ID and the message ID.
Common scenarios where this node is useful include:
- Automating cleanup of outdated or incorrect messages in chatrooms.
- Moderation workflows where inappropriate messages need to be removed automatically.
- Integrations that synchronize message deletions across platforms.
Example: Automatically deleting a message flagged by a moderation system from a particular chatroom.
Properties
| Name | Meaning |
|---|---|
| Chatroom ID | The unique numeric identifier of the chatroom from which the message will be deleted. |
| Message ID | The unique numeric identifier of the message to be deleted within the specified chatroom. |
Output
The output JSON contains the response from the Chatwork API after attempting to delete the message. Typically, this will be an object indicating success or failure of the deletion request. The exact structure depends on the API's response but generally confirms whether the message was successfully deleted.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the Chatwork API.
- Needs an API authentication token configured in n8n credentials to authorize requests.
- The node uses HTTP DELETE method to perform the deletion via the Chatwork API endpoint
/rooms/{roomId}/messages/{messageId}.
Troubleshooting
- Error: Operation not supported — Ensure the operation name is correctly set to "deleteMessage" under the "Rooms" resource.
- Invalid Chatroom ID or Message ID — Verify that both IDs are correct and exist in Chatwork; otherwise, the API will return an error.
- Authentication errors — Confirm that the API key credential is valid and has sufficient permissions to delete messages.
- Network or API downtime — Check network connectivity and Chatwork service status if requests fail unexpectedly.
