delete_firewall_rule
Remove a firewall rule from a live pfSense appliance by rule ID. Includes safety gates such as confirmation, dry-run preview, and description verification to prevent deleting the wrong rule.
Instructions
Delete a firewall rule from the live pfSense appliance. WARNING: This is irreversible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be set to True to execute. Safety gate for destructive operations. | |
| dry_run | No | If True, preview the operation without executing. | |
| rule_id | Yes | Rule ID (array index from search_firewall_rules, e.g., 0, 1, 2...) | |
| verify_descr | No | Safety check — if provided, verifies the rule at this ID still has this description before deleting. Prevents deleting the wrong rule after ID shifts. | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||