[comment]: # ({bab9094f-bab9094f})
# user.delete

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

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

`object user.delete(array users)`

Šī metode ļauj dzēst lietotājus.

::: noteclassic
Šī metode ir pieejama tikai *Super admin* lietotāja tipam.
Atļaujas izsaukt šo metodi var tikt atsauktas lietotāja lomas iestatījumos. Plašāku informāciju skatiet sadaļā
[Lietotāju
lomas](/manual/web_interface/frontend_sections/users/user_roles).
:::

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

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

`(array)` dzēšamo lietotāju ID.

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

[comment]: # ({17d395f4-17d395f4})
### Atgrieztās vērtības

`(object)` Atgriež objektu, kas satur dzēsto lietotāju ID
īpašībā `userids`.

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

[comment]: # ({b41637d2-b41637d2})
### Piemēri

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

[comment]: # ({8da6abf8-783cb2af})
#### Vairāku lietotāju dzēšana

Dzēsiet divus lietotājus.

[Pieprasījums](/manual/api#performing-requests):

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

Atbilde:

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

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

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

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

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