Search + K

Command Palette

Search for a command to run...

Sign In

chat_delete

POST /chat.delete
Copy endpoint
https://slack.com/api

Deletes a message.

Parameters

header Header Parameters

Name Type
token

Authentication token. Requires scope: chat:write

string

Request Body

application/x-www-form-urlencoded
{ as_user?: boolean;channel?: string;ts?: number; }

Responses

200 application/json

Typical success response

{ channel: DefsChannel
type DefsChannel = string
;ok: DefsOkTrue
type DefsOkTrue = true
;ts: DefsTs
type DefsTs = `${string}.${string}`
; }
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
type DefsOkFalse = false
; }