roles_delete
Permanently delete a role from a guild and remove it from all members. Use to clean up deprecated or integration roles that are no longer needed.
Instructions
Purpose: Delete a role from a guild. DESTRUCTIVE - IRREVERSIBLE. All members holding this role lose it.
When to use:
Tear down deprecated/integration roles.
When NOT to use:
Just removing the role from a single user → use
members_remove_role.
Returns: {deleted, role_id, guild_id}.
Security: gated by ConfirmRequired. Pass __confirm:true AND set MCP_DRY_RUN=false to actually delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | Role to delete (IRREVERSIBLE) | |
| guild_id | Yes | Guild containing the role | |
| __confirm | No | Set true to authorize this destructive operation. Also requires the server to run with MCP_DRY_RUN=false; otherwise a DRY_RUN_PREVIEW is returned. | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||