[comment]: # translation:outdated

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

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

[comment]: # ({62650624-c740de99})
### 描述

`object graph.delete(array graphIds)`

此方法允许删除图表。

::: noteclassic
此方法只有 *Admin（管理员）* 和 *Super admin（超级管理员）*用户可用。可以在用户角色设置中撤销调用该方法的权限。更多信息请查看[用户角色](/manual/web_interface/frontend_sections/administration/user_roles)。
:::

[comment]: # ({/62650624-c740de99})

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

`(array)` 要删除的图表的ID。

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

[comment]: # ({eb5c8bd8-eb5c8bd8})

### 返回值

`(object)`返回一个对象，包含在`graphids`属性下删除的图表的ID。

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

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

### 示例

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

[comment]: # ({15fd7214-3a78f2ec})
#### 删除多个图表
删除两个图表。

请求：

```json
{
    "jsonrpc": "2.0",
    "method": "graph.delete",
    "params": [
        "652",
        "653"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

响应：

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

[comment]: # ({/15fd7214-3a78f2ec})

[comment]: # ({e06af123-e06af123})

### 来源

*ui/include/classes/api/services/CGraph.php* 中的 CGraph::delete()。

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