⚠️ Delete message
messenger_delete_messageDeletes a single message from a chat irreversibly. The deletion is visible to the other party. Requires chat_id and message_id.
Instructions
Deletes a SINGLE message from a chat by message_id. WARNING: IRREVERSIBLE — the message cannot be restored; the deletion is visible to the other party (a "deleted" marker remains in place of the message). You can usually delete only your own messages. Requires chat_id and message_id (from messenger_get_messages_v3). Always confirm with the user before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | v0.7.0: if true — returns a preview of the HTTP request without calling the Avito API. Safe for inspecting exactly what would be done. Default: the value of AVITO_MCP_DRY_RUN_DEFAULT (usually false). | |
| chat_id | Yes | Chat identifier (string) from messenger_get_chats_v2. | |
| user_id | No | Avito account ID that owns the message. Defaults to Profile_id from .env. | |
| message_id | Yes | Identifier (string) of the message to delete, from messenger_get_messages_v3. | |
| idempotencyKey | No | v0.7.0: optional key for duplicate protection. A repeat call with the same key within AVITO_MCP_IDEMPOTENCY_TTL_SEC returns the cached result. The same key with different args returns a conflict error. Keys are stored as bounded SHA-256 fingerprints. |