[comment]: # translation:outdated

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

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

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

`object hostinterface.delete(array hostInterfaceIds)`

This method allows to delete host interfaces.

::: noteclassic
This method is only available to *Admin* and *Super admin*
user types. Permissions to call the method can be revoked in user role
settings. See [User
roles](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::

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

[comment]: # ({617ba57c-617ba57c})
### Paraméterek

A törlendő gazdagép interfészek `(tömb) azonosítói.

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

[comment]: # ({61a8b976-61a8b976})
### Visszatérési értékek

`(object)` Egy objektumot ad vissza, amely tartalmazza a törölt gazdagép azonosítóit
interfészek az `interfaceids` tulajdonság alatt.

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

[comment]: # ({b41637d2-b41637d2})
### Példák

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

[comment]: # ({new-91934c15})
#### Delete a host interface

Delete the host interface with ID 30062.

Request:

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

Response:

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

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

[comment]: # ({a3d1e725-a3d1e725})
### Lásd még

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

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

[comment]: # ({cf54c99c-cf54c99c})
### Forrás

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

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