Usermacro Delete
usermacro_deletePermanently delete host-level macros from Zabbix by macro ID to remove outdated definitions; ensure no items or triggers still reference them to avoid parsing errors.
Instructions
Delete host macros from Zabbix.
Permanently removes host-level macro definitions. Items and triggers using this macro will no longer be able to reference it, potentially causing parsing errors.
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": {
"hostmacroids": "<hostmacroids>"
},
"name": "usermacro_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostmacroids | Yes | Host macro IDs to delete. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||