[comment]: # translation:outdated

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

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

[comment]: # ({c62404c3-1f1b6511})
### 描述

`object user.delete(array users)`

此方法用于删除用户。

::: noteclassic
此方法仅适用于*Super admin(超级管理员)*类型的用户。可在用户角色设置中撤销调用该方法的权限，参阅[用户角色](/manual/web_interface/frontend_sections/users/user_roles)获取详情。
:::

[comment]: # ({/c62404c3-1f1b6511})

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

`(array)` 要删除用户的ID。

[comment]: # ({/213fafcd-213fafcd})

[comment]: # ({17d395f4-17d395f4})
### 返回值

`(object)` 返回一个带有`userids`属性（其中包含被删除用户ID）的对象。

[comment]: # ({/17d395f4-17d395f4})

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

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

[comment]: # ({8da6abf8-783cb2af})

#### 批量删除用户

删除两个用户。

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

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

响应:

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

[comment]: # ({/8da6abf8-783cb2af})

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

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

[comment]: # ({/8c5510d6-8c5510d6})
