automod_delete_rule
automod_delete_rule
Section titled “automod_delete_rule”Category: automod
Delete an AutoMod rule. DESTRUCTIVE — IRREVERSIBLE.
When to use
Section titled “When to use”- Permanently remove an obsolete rule.
When NOT to use
Section titled “When NOT to use”- Temporarily disable → use
automod_modify_rulewithenabled:false.
| Field | Type | Required | Description |
|---|---|---|---|
guild_id | string | yes | Guild containing the rule |
rule_id | string | yes | Rule to delete (IRREVERSIBLE) |
audit_reason | string | no | Reason recorded in audit log (X-Audit-Log-Reason header) |
Returns
Section titled “Returns”\{deleted, rule_id, guild_id\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
deleted | boolean | yes | |
rule_id | string | yes | Discord AutoMod rule 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) |