SlackWeb.Chat.delete

You're seeing just the function delete, go back to SlackWeb.Chat module for more information.
Link to this function

delete(channel, ts, optional_params \\ %{})

View Source

Deletes a message.

Required Params

  • channel - Channel containing the message to be deleted.
  • ts - Timestamp of the message to be deleted. ex: 1405894322.002768

Errors the API can return:

  • cant_delete_message - Authenticated user does not have permission to delete this message.
  • channel_not_found - Value passed for channel was invalid.
  • compliance_exports_prevent_deletion - Compliance exports are on, messages can not be deleted
  • message_not_found - No message exists with the requested timestamp.