chat.deleteScheduledMessage
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 pending scheduled message before it is sent.
There are two ways to determine the scheduled_message_id
of a message you wish to delete:
- The response of the
chat.scheduleMessage
endpoint contains thescheduled_message_id
needed to delete that message. - You can also retrieve the
scheduled_message_id
s for all the messages you've scheduled by callingchat.scheduledMessages.list
.
Restrictions
You cannot delete scheduled messages that have already been posted to Slack or that will be posted to Slack within 60 seconds of the delete request. If attempted, this method will respond with an invalid_scheduled_message_id
error.