Delete AutoMod rule
delete_automod_ruleDeletes a Discord AutoMod rule by name or ID after a preview and confirmation token, stopping its protection immediately upon confirmed deletion.
Instructions
Delete an AutoMod rule; its protection stops immediately. Safe to call directly: the first call changes nothing and returns a preview plus a confirm_token; repeating the call with the token deletes it. Turning it off with update_automod_rule is the reversible alternative.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rule": "<rule>"
},
"name": "delete_automod_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | Rule name or ID. | |
| guild | No | Guild (server) name or ID. Omit to use the default guild. | |
| dry_run | No | ||
| confirm_token | No | The token from this exact action's preview. Where the app can show a confirmation dialog, calling with it asks the user there, and it happens only if they agree. |