[comment]: # translation:outdated

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

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

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

`object hostinterface.delete(array hostInterfaceIds)`

Questo metodo consente di eliminare le interfacce host.

::: noteclassic
Questo metodo è disponibile solo per i tipi di utente *Admin* e *Super admin*.
Le autorizzazioni per chiamare il metodo possono essere revocate nelle impostazioni del ruolo utente.
Per ulteriori informazioni, vedere [Ruoli utente](/manual/web_interface/frontend_sections/users/user_roles).
:::

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

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

`(array)` ID delle interfacce host da eliminare.

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

[comment]: # ({61a8b976-61a8b976})
### Valori di ritorno

`(object)` Restituisce un oggetto contenente gli ID delle interfacce host eliminate
sotto la proprietà `interfaceids`.

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

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

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

[comment]: # ({664e15f5-91934c15})
#### Eliminare un'interfaccia host

Eliminare l'interfaccia host con ID 30062.

[Richiesta](/manual/api#performing-requests):

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

Risposta:

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

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

[comment]: # ({a3d1e725-a3d1e725})
### Guarda anche

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

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

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

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

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