Skip to main content
DELETE
/
channels
/
{channel_id}
/
messages
/
{message_id}
cURL
curl --request DELETE \
  --url https://discord.com/api/v10/channels/{channel_id}/messages/{message_id} \
  --header 'Authorization: <api-key>'
{
  "code": 123,
  "message": "<string>",
  "retry_after": 123,
  "global": true
}

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

channel_id
string<snowflake>
required
message_id
string<snowflake>
required

Response

204 response for delete_message