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

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

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

`object hostinterface.delete(array hostInterfaceIds)`

Ta metoda pozwala usunąć interfejsy hosta.

::: noteclassic
Ta metoda jest dostępna tylko dla typów użytkowników *Admin* i 
*Super admin*. Uprawnienia do wywołania metody można cofnąć w ustawieniach ról 
użytkownika. Zobacz [Role 
użytkowników](/manual/web_interface/frontend_sections/administration/user_roles) 
po więcej informacji.
:::

[comment]: # ({/6a90d1d2-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]: # ({9639e082-91934c15})
#### Usunięcie interfejsu hosta

Usuń interfejs hosta o identyfikatorze 30062.

Zapytanie:

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

Odpowiedź:

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

[comment]: # ({/9639e082-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})
