Skip to main content
DELETE
/
webhooks
/
{webhook_id}
/
{webhook_token}
/
messages
/
{message_id}
cURL
curl --request DELETE \
  --url https://discord.com/api/v10/webhooks/{webhook_id}/{webhook_token}/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

webhook_id
string<snowflake>
required
webhook_token
string
required
Maximum string length: 152133
message_id
string<snowflake>
required

Query Parameters

thread_id
string<snowflake>

Response

204 response for delete_webhook_message