chat_delete
POST
/chat.delete https://slack.com/api
Deletes a message.
Parameters
header Header Parameters
| Name | Type |
|---|---|
token Authentication token. Requires scope: | string |
Request Body
application/x-www-form-urlencoded
{ as_user?: boolean;channel?: string;ts?: number; }
Responses
200 application/json
Typical success response
{ channel: DefsChannel ;ok: DefsOkTrue ;ts: DefsTs ; }
default application/json
Typical error response
{ callstack?: string;error: "message_not_found" | "channel_not_found" | "cant_delete_message" | "compliance_exports_prevent_deletion" | "not_authed" | "invalid_auth" | "account_inactive" | "token_revoked" | "no_permission" | "invalid_arg_name" | "invalid_array_arg" | "invalid_charset" | "invalid_form_data" | "invalid_post_type" | "missing_post_type" | "team_added_to_org" | "invalid_json" | "json_not_object" | "request_timeout" | "upgrade_required" | "fatal_error";ok: DefsOkFalse ; }