删除

描述

object script.delete(array scriptIds)

此方法允许去删除脚本。

参数

(array)返回删除脚本的ID

返回值

(object) 返回一个对象包含在scriptids属性之下删除的脚本

示例如下

删除多个脚本

删除两个脚本。

Request:

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

Response:

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

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