# Delete AutoMod Rule

> Delete an auto moderation rule.

- ID: `delete_automod_rule`
- Type: Block
- Category: [Auto Moderation](https://inventor.bot/docs/reference/blocks/auto-moderation.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `server_id` | yes | Server the rule belongs to. |  |
| `rule_id` | yes | ID of the rule to delete. |  |

**Example**

```go
delete_automod_rule(Args{server_id: trigger.server_id, rule_id: "..."})
```