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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service object name | |
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier |