delete_firmware_template
Delete an unassigned firmware template from FortiManager. Refuses templates still assigned to a device or group and lists the assignments, so firmware targets change only through an explicit unassign step.
Instructions
Delete a firmware template that is not assigned to any device or group.
An assigned template is refused, with the assignment listed: unassign it in the GUI first, so a delete can never change what firmware a device is held to without that being a deliberate step.
Verified on FortiManager 8.0.2; the template table is not in the bundled API reference.
Args: name: Template name adom: ADOM name (default: from DEFAULT_ADOM env var, or "root")
Returns: dict: status, message (and assigned_to when refused)
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_firmware_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | No | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||