invites_delete
invites_delete
Section titled “invites_delete”Category: invites
Revoke a Discord invite by code. DESTRUCTIVE — IRREVERSIBLE.
When to use
Section titled “When to use”- Cut off an over-shared or compromised invite link.
When NOT to use
Section titled “When NOT to use”- To rotate without disrupting access → create a new invite first, then delete the old one.
| Field | Type | Required | Description |
|---|---|---|---|
code | string | yes | Invite code to revoke |
audit_reason | string | no | Reason recorded in audit log (X-Audit-Log-Reason header) |
Returns
Section titled “Returns”\{deleted, code\}. Pass __confirm:true AND set MCP_DRY_RUN=false to actually delete.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
deleted | boolean | yes | |
code | string | yes | Discord invite code (base62, NOT a snowflake) |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | yes (__confirm:true required) |