[comment]: # translation:outdated

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

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

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

`object user.delete(array users)`

Questo metodo consente di eliminare gli utenti.

::: noteclassic
Questo metodo è disponibile solo per gli utenti di tipo *Super admin*.
I permessi per chiamare il metodo possono essere revocati nelle impostazioni del ruolo utente. Consultare
[Ruoli
utente](/manual/web_interface/frontend_sections/users/user_roles)
per ulteriori informazioni.
:::

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

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

`(array)` ID degli utenti da eliminare.

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

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

`(object)` Restituisce un oggetto contenente gli ID degli utenti eliminati
nella proprietà `userids`.

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

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

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

[comment]: # ({8da6abf8-783cb2af})
#### Eliminazione di più utenti

Elimina due utenti.

[Richiesta](/manual/api#performing-requests):

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

Risposta:

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

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

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

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

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