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.
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": {
"name": "<name>"
},
"name": "delete_port_forward"
}
}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) |