Skip to content

webhooks_delete_message

Category: webhooks

Delete a message previously sent by this webhook. DESTRUCTIVE — IRREVERSIBLE.

  • Retract a stale alert or accidentally posted content.
FieldTypeRequiredDescription
webhook_idstringyesWebhook id
tokenstringyesWebhook secret — treat as credential, do not log
message_idstringyesMessage to delete
thread_idstringnoQuery param: thread the message lives in

\{deleted, message_id\}. Pass __confirm:true AND set MCP_DRY_RUN=false to actually delete.

FieldTypeRequiredDescription
deletedbooleanyes
message_idstringyesDiscord message ID
PropertyValue
Read-onlyno
Destructiveyes
Idempotentyes
Open-worldyes
Confirmation requiredyes (__confirm:true required)

packages/mcp-core/src/tools/webhooks/delete_message.ts