Home / Servers / X (Twitter) API / delete_chat_messages
Delete Chat Messages
An MCP tool from the X (Twitter) API server, hosted on mcp.hjlabs.in.
Delete Chat Messages Deletes one or more messages from a Chat conversation. For 1:1 conversations, provide the recipient's user ID; the server constructs the canonical conversation ID from the authenticated user and… [POST /2/chat/conversations/{id}/messages/delete]
Name on the gateway: x_api__delete_chat_messages · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
id required | string | id parameter |
action_signatures required | array | Signatures for this action, forwarded in the order they are sent. |
delete_message_action required | delete_for_all | delete_for_self | delete_for_all removes the messages for every participant; delete_for_self… |
media_hash_keys | array | Hash keys of encrypted media blobs to delete alongside the messages… |
sequence_ids required | array | Sequence IDs of the messages to delete. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "x_api__delete_chat_messages",
"arguments": {
"id": "…",
"action_signatures": [],
"delete_message_action": "…",
"sequence_ids": []
}
}Or connect the X (Twitter) API server directly, which lists 258 tools including this one:
claude mcp add --transport http hj-x-api https://mcp.hjlabs.in/mcp/x-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the delete chat messages tool with id set to ….