[comment]: # ({df57832b-77549553})
# 连接器删除

[comment]: # ({/df57832b-77549553})

[comment]: # ({9c33a1aa-1e18cf5c})
### 描述

`object connector.delete(array connectorids)`

此方法允许 delete 连接器条目。

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

[comment]: # ({/9c33a1aa-1e18cf5c})

[comment]: # ({e1a8f125-55d11efd})
### 参数

`(array)` 要删除的连接器的 IDs。

[comment]: # ({/e1a8f125-55d11efd})

[comment]: # ({408723b2-5f42b70a})
### 返回值

`(object)` 返回一个 object，其中包含在 `connectorids` 属性下列出的已删除连接器的 ID。

[comment]: # ({/408723b2-5f42b70a})

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

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

[comment]: # ({5c6de4f1-d07c0442})
#### 删除多个连接器

删除两个连接器条目。

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


```json
{
    "jsonrpc": "2.0",
    "method": "connector.delete",
    "params": [
        3,
        5
    ],
    "id": 1
}
```
响应:


```json
{
    "jsonrpc": "2.0",
    "result": {
        "connectorids": [
            "3",
            "5"
        ]
    },
    "id": 1
}
```

[comment]: # ({/5c6de4f1-d07c0442})

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

CConnector::delete() 在 *ui/include/classes/api/services/CConnector.php* 中。

[comment]: # ({/a6fcafd0-b3ee848b})
