Available since version: 1.8
This function allows you to delete information about one or several hosts. All host-related information will be removed including items, graphs, macros, application, historical data, etc.
Array of Host IDs
Parameter | Description |
---|---|
result | Operation successful. Result will contain array of deleted Host IDs. |
error | In case of any errors |
Delete hosts by Host ID
{
"jsonrpc":"2.0",
"method":"host.delete",
"params":[
{
"hostid":"107824"
},
{
"hostid":"107825"
}
],
"auth":"3a57200802b24cda67c4e4010b50c065",
"id":2
}
Hosts deleted successfully:
Host does not exist: