Skip to main content

lib/slack/web/docs/chat.delete.json

{
	"desc": "Deletes a message.",

	"args": {
		"ts": {
			"required"	: true,
			"example"	: "1405894322.002768",
			"desc"		: "Timestamp of the message to be deleted."
		},
		"channel": {
			"type"		: "channel",
			"required"	: true,
			"desc"		: "Channel containing the message to be deleted."
		}
	},

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