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

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

[comment]: # ({89774c86-4922e104})
### 描述

`object correlation.delete(array correlationids)`

此方法允许删除关联关系。

::: noteclassic
此方法仅适用于 *超级管理员* 用户类型。
调用此方法的权限可在用户角色设置中撤销。更多信息请参见
[用户角色](/manual/web_interface/frontend_sections/users/user_roles)。
:::

[comment]: # ({/89774c86-4922e104})

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

`(array)` 要删除的关联 ID。

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

[comment]: # ({855af217-855af217})
### 返回值

`(object)` 返回一个对象，该对象包含`correlationids`属性下删除的关联 ID。

[comment]: # ({/855af217-855af217})

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

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

[comment]: # ({a7a7df8b-bfc49991})
#### 删除多个事件关联

删除两个事件关联。

[请求](/manual/api#performing-requests)：

```json
{
    "jsonrpc": "2.0",
    "method": "correlation.delete",
    "params": [
        "1",
        "2"
    ],
    "id": 1
}
```

响应：

```json
{
    "jsonrpc": "2.0",
    "result": {
        "correlationids": [
            "1",
            "2"
        ]
    },
    "id": 1
}
```

[comment]: # ({/a7a7df8b-bfc49991})

[comment]: # ({b0713c0f-b0713c0f})
### 来源

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

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