[comment]: # ({b7cb6534-c233abea})
# 删除

[comment]: # ({/b7cb6534-c233abea})

[comment]: # ({a9b64d84-1b246a55})
### 说明

`object triggerprototype.delete(array triggerPrototypeIds)`

此方法允许删除触发器原型。

[comment]: # ({/a9b64d84-1b246a55})

[comment]: # ({43c6eb28-93be9503})
### 参数

`(array)`需要删除的触发器原型ID。

[comment]: # ({/43c6eb28-93be9503})

[comment]: # ({bd909756-91b09722})
### 返回值

`(object)`返回一个对象，该对象包含在`triggerids`属性中已删除触发器原型的ID。

[comment]: # ({/bd909756-91b09722})

[comment]: # ({392bbd85-b41637d2})
### 范例

[comment]: # ({/392bbd85-b41637d2})

[comment]: # ({b4f0e502-ed4ab6a8})
#### 删除多个触发器原型

删除两个触发器原型。

请求:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "triggerprototype.delete",
    "params": [
        "12002",
        "12003"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

响应:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "triggerids": [
            "12002",
            "12003"
        ]
    },
    "id": 1
}
```

[comment]: # ({/b4f0e502-ed4ab6a8})

[comment]: # ({adbc3b67-c4ac1758})
### 源码

CTriggerPrototype::delete()方法可在*frontends/php/include/classes/api/services/CTriggerPrototype.php*中参考。

[comment]: # ({/adbc3b67-c4ac1758})
