delete_service_object
Removes a custom FortiGate service object by device and name, and reports failure when a policy or service group still references it.
Instructions
Delete a custom service object. FortiOS refuses while a policy or service group references it.
Parameters:
device_id: Identifier of the FortiGate device
name: Service object name
vdom: Virtual Domain name (optional)
Returns:
Deletion status
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": {
"device_id": "<device_id>",
"name": "<name>"
},
"name": "delete_service_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service object name | |
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier |