remove_firewall_rule
Permanently delete a MikroTik firewall rule by its rule ID, using an optional comment match to confirm you're removing the intended rule. Disable the rule instead if you may need to restore it.
Instructions
Delete a firewall rule permanently.
There is no undo. Disabling a rule (set_firewall_rule_enabled) is
almost always the better first move, and the returned copy of the
deleted rule is the only record you will have afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | The rule 'id' from list_firewall_rules, e.g. '*7'. | |
| confirm_comment | No | If given, the removal only proceeds when the rule's comment matches. Cheap insurance that you are deleting the rule you think you are. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |