[comment]: # ({dd2b9519-dd2b9519})
# host.delete

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

[comment]: # ({4fc1750c-8f1cd3fa})
### Apraksts

`object host.delete(array hosts)`

Šī metode ļauj dzēst hostus.

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

[comment]: # ({/4fc1750c-8f1cd3fa})

[comment]: # ({cede3d95-cede3d95})
### Parametri

`(array)` dzēšamo hostu ID.

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

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

`(object)` Atgriež objektu, kas satur dzēsto hostu ID
zem `hostids` īpašības.

[comment]: # ({/54b4a855-54b4a855})

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

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

[comment]: # ({47a8da31-ef767d02})
#### Vairāku hostu dzēšana

Dzēsiet divus hostus.

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

```json
{
    "jsonrpc": "2.0",
    "method": "host.delete",
    "params": [
        "13",
        "32"
    ],
    "id": 1
}
```

Atbilde:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "hostids": [
            "13",
            "32"
        ]
    },
    "id": 1
}
```

[comment]: # ({/47a8da31-ef767d02})

[comment]: # ({9d5f3989-9d5f3989})
### Avots

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

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