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.

script.delete

Description

object script.delete(array scriptIds)

Cette méthode permet de supprimer des scripts.

Paramètres

(array) ID des scripts à supprimer.

Valeurs retournées

(object) Retourne un objet contenant les identifiants des scripts supprimés sous la propriété scriptids.

Exemples

Suppression de plusieurs scripts

Supprimer deux scripts.

Requête :

{
           "jsonrpc": "2.0",
           "method": "script.delete",
           "params": [
               "3",
               "4"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Réponse :

{
           "jsonrpc": "2.0",
           "result": {
               "scriptids": [
                   "3",
                   "4"
               ]
           },
           "id": 1
       }

Source

CScript::delete() dans frontends/php/include/classes/api/services/CScript.php.