Skip to content

invites_delete

Category: invites

Revoke a Discord invite by code. DESTRUCTIVE — IRREVERSIBLE.

  • Cut off an over-shared or compromised invite link.
  • To rotate without disrupting access → create a new invite first, then delete the old one.
FieldTypeRequiredDescription
codestringyesInvite code to revoke
audit_reasonstringnoReason recorded in audit log (X-Audit-Log-Reason header)

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

FieldTypeRequiredDescription
deletedbooleanyes
codestringyesDiscord invite code (base62, NOT a snowflake)
PropertyValue
Read-onlyno
Destructiveyes
Idempotentyes
Open-worldyes
Confirmation requiredyes (__confirm:true required)

packages/mcp-core/src/tools/invites/delete.ts