discord_delete_webhook
Delete Discord webhooks by ID to manage integrations and remove unused endpoints. This tool removes webhooks from Discord servers to maintain clean configurations.
Instructions
Delete a webhook.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhook_id | Yes |
Implementation Reference
- src/tools/webhooks.ts:177-183 (handler)The handler logic for 'discord_delete_webhook' which fetches the webhook and deletes it.
case "discord_delete_webhook": { const webhookId = validateId(args.webhook_id, "webhook_id"); const webhook = await discord.fetchWebhook(webhookId); const webhookName = webhook.name; await webhook.delete(); return { content: [{ type: "text", text: `✅ Webhook "${webhookName}" (id: ${webhookId}) deleted.` }] }; } - src/tools/webhooks.ts:79-88 (schema)Input schema definition for the 'discord_delete_webhook' tool.
name: "discord_delete_webhook", description: "Delete a webhook.", inputSchema: { type: "object", properties: { webhook_id: { type: "string" }, }, required: ["webhook_id"], }, },