Zabbix Documentation 1.8

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


Sidebar

api:image:delete

Table of Contents

delete()

Available since version: 1.8
This function allows you to delete information about one or several images. Image can't be removed if is used in maps as icon or background. Available only to super admins.

Parameters

Array of Image IDs

Returns

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

Example

Delete images by image ID

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

Images deleted successfully:

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

Images does not exist:

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