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

NameTypeDescription
id requiredstringid parameter
action_signatures requiredarraySignatures for this action, forwarded in the order they are sent.
delete_message_action requireddelete_for_all | delete_for_selfdelete_for_all removes the messages for every participant; delete_for_self…
media_hash_keysarrayHash keys of encrypted media blobs to delete alongside the messages…
sequence_ids requiredarraySequence 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:

call_tool arguments
{
  "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:

Run in your terminal
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 ….

More from X (Twitter) API