The SlackDeleteLast script doesn't work for two reasons: -  - The API call for https://api.slack.com/methods/search.messages cannot be done by a bot, the response will be "user_is_bot" (see errors section) I can't think of a workaround.