delete_message
Soft-delete a message you sent in Teams chats or channels, requiring confirm=true; use edit instead to fix typos.
Instructions
Soft-delete a message previously sent by the signed-in user (use edit_message instead to fix a typo). Destructive action requiring literal confirm=true; rejected during validation otherwise. Enforces Graph delegated permissions (Chat.ReadWrite or ChannelMessage.ReadWrite) and Teams delete policy. Updates Graph and local cache; returns { ok, conv_key, msg_id }.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"msg_id": "<msg_id>",
"confirm": "<confirm>"
},
"name": "delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg_id | Yes | ID of the message sent by the current user to soft-delete. | |
| target | Yes | Conversation conv_key (chat:... or chan:team:channel), "Team/Channel", or unique conversation title substring. | |
| confirm | Yes | Safety guard: must be literal JSON boolean true or the call fails before contacting Microsoft Graph. | |
| thread_root_id | No | Optional channel thread root post ID required when deleting a reply inside a channel thread. |