[comment]: # ({bd64f320-bd64f320})
# sla.delete

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

[comment]: # ({6707acfe-6707acfe})
### 描述

`object sla.delete(array slaids)`

此方法允许delete SLA条目.

::: noteclassic
此方法仅适用于*Admin*和*Super admin*
用户类型. 调用该方法的权限可在用户角色
设置中撤销. 更多信息请参阅[User
roles](/manual/web_interface/frontend_sections/administration/user_roles).

:::

[comment]: # ({/6707acfe-6707acfe})

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

`(array)` 需要delete的SLA ID列表。

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

[comment]: # ({9b9adfaa-9b9adfaa})
### 返回值

`(object)` 返回一个包含已删除SLA ID的object
存储在`slaids`属性下。

[comment]: # ({/9b9adfaa-9b9adfaa})

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

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

[comment]: # ({a362cd17-d146a285})
#### 删除多个 SLA

删除两个SLA条目.

请求:

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

```json
{
    "jsonrpc": "2.0",
    "result": {
        "slaids": [
            "4",
            "5"
        ]
    },
    "id": 1
}
```

[comment]: # ({/a362cd17-d146a285})

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

CSla::delete() 位于 *ui/include/classes/api/services/CSla.php* 文件中。

[comment]: # ({/20f60157-20f60157})
