Delete Messages

Learn to use Slack API calls to delete messages.

In this lesson, we’ll learn to delete regular and scheduled messages in Slack.

Let’s look at the following endpoints in this lesson:

  1. chat.delete: This endpoint deletes a message.
  2. chat.deleteScheduledMessage: This endpoint deletes a scheduled message.

Delete a message

To delete a message we access the https://slack.com/api/chat.delete endpoint. We’ll pass a message’s timestamp, ts, as a parameter to delete a message. We can use the chat.postMessage endpoint to send a message and receive the timestamp ts as ...

Get hands-on with 1400+ tech skills courses.