Delete a Slack message
delete_messageDeletes a Slack message the bot posted, using its channel and timestamp; Slack permits only bot-owned deletions, and this action is irreversible.
Instructions
Delete a message the bot posted, identified by channel and ts (as returned by send_message). Slack only lets a bot delete its own messages. Deleting the parent of a thread leaves its replies in place. This cannot be undone, so confirm with the user unless they asked for it.
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": {
"channel": "<channel>",
"ts": "<ts>"
},
"name": "delete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | Yes | Timestamp of the bot's message to delete | |
| channel | Yes | Channel ID, #channel-name, or user (ID, @handle, email) for a DM |