Zabbix Documentation 1.8

2.23.03.44.0 (current)In development:4.2 (devel)Unsupported:1.82.02.43.2

User Tools

Site Tools


Sidebar

api:item:delete

Table of Contents

delete()

Available since version: 1.8
This function allows you to delete information about one or several items. All item-related information will be removed including triggers, empty graphs, child items, historical data.

Parameters

Array of Item IDs

Returns

ParameterDescription
resultOperation successful. Result will contain array of deleted Item IDs.
errorIn case of any errors

Example

Delete items by item ID

{
"jsonrpc":"2.0",
"method":"item.delete",
"params":["107824",  "107825"],
"auth":"3a57200802b24cda67c4e4010b50c065",
"id":2
}

Items deleted successfully:

{
"jsonrpc":"2.0",
"result":{
   "itemids": ["107824", "107825"]
},
"id":2
}

Items does not exist:

{
"jsonrpc":"2.0",
"error":{
      "code":-32500,
      "message":"Application error.",
      "data":"[ CItem::delete ] Item does not exist"
},
"id":2
}