Zabbix Documentation 1.8

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


Sidebar

api:map:delete

Table of Contents

delete()

Available since version: 1.8
This function allows you to delete information about one or several maps. Map items and links will be removed.

Parameters

Array of Map IDs

Returns

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

Example

Delete maps by map ID

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

Maps deleted successfully:

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

Maps does not exist:

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