[comment]: # translation:outdated

[comment]: # ({0a247a7d-0a247a7d})
# 删除

[comment]: # ({/0a247a7d-0a247a7d})

[comment]: # ({6433bb0c-8256b270})
### 描述

`object graphprototype.delete(array graphPrototypeIds)`

该方法允许删除图形原型。

::: noteclassic
这个方法只可用于 *管理员* 和 *超级管理员* 的用户类型。调用该方法的权限可以在用户角色设置中被撤销。 前往[用户角色](/manual/web_interface/frontend_sections/users/user_roles)以了解更多信息。
:::

[comment]: # ({/6433bb0c-8256b270})

[comment]: # ({3e4a53cc-3e4a53cc})
### 参数

`(array)` 要删除的图形原型的ID。

[comment]: # ({/3e4a53cc-3e4a53cc})

[comment]: # ({82123f70-82123f70})
### 返回值

`(object)` `返回一个对象，该对象包含 `graphids` 属性下已删除的图形原型的ID。

[comment]: # ({/82123f70-82123f70})

[comment]: # ({b41637d2-b41637d2})
### 示例

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

[comment]: # ({ce5f8001-d24b4f06})
#### 删除多个图形原型

删除两个图形原型。

[请求](/manual/api#执行请求):

```json
{
    "jsonrpc": "2.0",
    "method": "graphprototype.delete",
    "params": [
        "652",
        "653"
    ],
    "id": 1
}
```

响应:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "graphids": [
            "652",
            "653"
        ]
    },
    "id": 1
}
```

[comment]: # ({/ce5f8001-d24b4f06})

[comment]: # ({21f88b2f-21f88b2f})
### 源码

CGraphPrototype::delete() in
*ui/include/classes/api/services/CGraphPrototype.php*.

[comment]: # ({/21f88b2f-21f88b2f})
