[comment]: # ({fc20d2a9-fc20d2a9})
# hostinterface.delete

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

[comment]: # ({38b988e0-6a90d1d2})
### Apraksts

`object hostinterface.delete(array hostInterfaceIds)`

Šī metode ļauj dzēst hostu saskarnes.

::: 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 sadaļā [Lietotāju
lomas](/manual/web_interface/frontend_sections/users/user_roles).
:::

[comment]: # ({/38b988e0-6a90d1d2})

[comment]: # ({617ba57c-617ba57c})
### Parametri

`(array)` dzēšamo hostu saskarņu ID.

[comment]: # ({/617ba57c-617ba57c})

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

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

[comment]: # ({/61a8b976-61a8b976})

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

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

[comment]: # ({664e15f5-91934c15})
#### Dzēst hosta saskarni

Dzēsiet hosta saskarni ar ID 30062.

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

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

Atbilde:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "interfaceids": [
            "30062"
        ]
    },
    "id": 1
}
```

[comment]: # ({/664e15f5-91934c15})

[comment]: # ({a3d1e725-a3d1e725})
### Skatiet arī

-   [hostinterface.massremove](massremove)
-   [host.massremove](/manual/api/reference/host/massremove)

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

[comment]: # ({cf54c99c-cf54c99c})
### Avots

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

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