Delete Message from Channel
  • 26 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Delete Message from Channel

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationIntegration > Slack Messenger

The Delete Message from Channel step allows messages to be removed that were posted by the bot within the slack application. The step requires the timestamp of the message, which can be obtained by using the Get Messages from Channel step.

Prerequisites

The step requires the Slack Module to be installed before it will be available in the toolbox.


Properties

Inputs

PropertyDescriptionData Type
Channel IDThe ID for the channelString
Message TimestampThe timestamp is used to identify the message within the channelString

Outputs

PropertyDescriptionData Type
Error


Error infoString containing an HTTP ErrorCode along with an Error Message returned.String
Result


RESULTOutput containing any additional responses from SlackString

Example Inputs and Outputs

Channel IDMessage TimestampOutput
C04M2E8EEL9
1674737242.066249Message removed within the Slack channel
C04M2E8EEL9
1674737242.06649
Error response returned: message_not_found
Null ValueNull ValueError response returned: message_not_found


Common Errors

Message not found

This error appears when a message has already been removed, or if an incorrect timestamp has been used. Ensure that the timestamp is entered correctly and that the message has not already been removed.


Can't delete message

This error appears if a message other than one posted by the bot application is being removed. The bot application can only remove messages posted by the user.



Related Information

Related Articles:

Slack Module


Was this article helpful?