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.
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 |