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

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

[comment]: # ({fa497d55-469ac232})
### 说明

`object templatescreen.delete(array templateScreenIds)`

此方法允许删除聚合图形模板。

[comment]: # ({/fa497d55-469ac232})

[comment]: # ({ba27a50f-7b87f918})
### 参数

`(array)`需要删除的聚合图形模板ID。

[comment]: # ({/ba27a50f-7b87f918})

[comment]: # ({aa58b98a-f707862e})
### 返回值

`(object)`返回一个对象，该对象包含在`screenids`属性中已删除聚合图形模板的ID。

[comment]: # ({/aa58b98a-f707862e})

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

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

[comment]: # ({02712cfa-06f20b08})
#### 删除多个聚合图形模板

删除两个聚合图形模板。

Request 请求:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "templatescreen.delete",
    "params": [
        "45",
        "46"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response 响应:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "screenids": [
            "45",
            "46"
        ]
    },
    "id": 1
}
```

[comment]: # ({/02712cfa-06f20b08})

[comment]: # ({e55d656c-2bd4ac54})
### 源码

CTemplateScreen::delete()方法可在ui/include/classes/api/services/CTemplateScreen.php中参考。

[comment]: # ({/e55d656c-2bd4ac54})
