delete_port_forward
Delete a port forward (VIP) on FortiGate; if a policy uses it, set detach=true to remove it from policies first, or the delete is blocked.
Instructions
Delete a VIP. FortiOS refuses while a policy uses it; detach=true first removes it from every policy's destinations. A policy whose only destination is this VIP blocks the delete: change or delete that policy first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | VIP name | |
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| detach | No | Remove the VIP from policies first (default false) |