This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

deleteMedia()

Available since version: 1.8

Parameters

Array with media data, media ID must be specified.

Parameter Type Optional Description Details
medias array Yes Media objects which should be deleted (removed / added).

Returns

Parameter Description
result Operation successful. Result will contain an array of deleted user media IDs.
error In case of any errors

Example

Remove two user media from user with ID "100100000010092"

{
       "jsonrpc":"2.0",
       "method":"user.deleteMedia",
       "params":[
         {"mediaid": "100100000000011"},
         {"mediaid": "100100000000012"}
       ],
       "auth":"f223adf833b2bf2ff38574a67bba6372",
       "id":2
       }

User media deleted successfully:

{
       "jsonrpc":"2.0",
       "result":{
          "mediaids":["100100000000011", "100100000000012"]
       },
       "id":2
       }