chat.delete
method
Welcome to the new home of Slack developer docs!
We're still building and not all features are available quite yet. Enjoy this peek into the future!
Not ready for the future? Return to the past at api.slack.com.
Usage info
This method deletes a message from a conversation.
When used with a user token, this method may only delete messages that user themselves can delete in Slack.
When used with a bot token, this method may delete only messages posted by that bot.
This method has no accommodations for impersonation. If a message is sent impersonating another user, you will not be able to call chat.delete
to delete that same message.
Response
The response includes the channel
and timestamp
properties of the deleted message.