guild_delete_integration
guild_delete_integration
Section titled “guild_delete_integration”Category: guild
Delete an integration from a guild. DESTRUCTIVE — also disconnects associated webhooks.
When to use
Section titled “When to use”- Remove a stale or compromised third-party integration.
When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
guild_id | string | yes | Guild containing the integration |
integration_id | string | yes | Integration to delete (IRREVERSIBLE) |
audit_reason | string | no | Reason recorded in audit log (X-Audit-Log-Reason header) |
Returns
Section titled “Returns”\{deleted, integration_id, guild_id\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
deleted | boolean | yes | |
integration_id | string | yes | Discord integration ID |
guild_id | string | yes | Discord guild (server) ID |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | yes (__confirm:true required) |