删除

Description 描述

object script.delete(array scriptIds)

This method allows to delete scripts. 此方法允许去删除脚本

Parameters 参数

(array) IDs of the scripts to delete. (array)返回删除脚本的IDs

Return values 返回值

(object) Returns an object containing the IDs of the deleted scripts under the scriptids property. (object) 返回一个对象包含在scriptids属性之下删除的脚本

Examples 示例如下

Delete multiple scripts 删除多个脚本

Delete two scripts. 删除两个脚本。

Request:

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

Response:

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

Source

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