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

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

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

`object hostinterface.delete(array hostInterfaceIds)`

Ta metoda umożliwia usuwanie interfejsów hosta.

::: noteclassic
Ta metoda jest dostępna tylko dla użytkowników typu *Admin* i *Super admin*. Uprawnienia do wywołania metody można odwołać w ustawieniach
roli użytkownika. Więcej informacji można znaleźć w [User
roles](/manual/web_interface/frontend_sections/users/user_roles).
:::

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

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

`(array)` ID interfejsów hosta do usunięcia.

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

[comment]: # ({61a8b976-61a8b976})
### Zwracane wartości

`(object)` Zwraca obiekt zawierający identyfikatory usuniętych interfejsów 
hosta we właściwości `interfaceids`.

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

[comment]: # ({b41637d2-b41637d2})
### Przykłady

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

[comment]: # ({664e15f5-91934c15})
#### Usuń interfejs hosta

Usuń interfejs hosta o identyfikatorze 30062.

[Żądanie](/manual/api#performing-requests):

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

Odpowiedź:

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

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

[comment]: # ({a3d1e725-a3d1e725})
### Zobacz również

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

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

[comment]: # ({cf54c99c-cf54c99c})
### Źródło

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

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