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

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

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

`object hostinterface.delete(array hostInterfaceIds)`

このメソッドは、ホストインターフェースを削除することができます。

::: noteclassic
このメソッドは、*Admin*および*Super admin*タイプのユーザーのみ利用可能です。メソッドを呼び出す権限は、ユーザーの役割の設定で取り消すことができます。詳細は[ユーザーの役割](/manual/web_interface/frontend_sections/administration/user_roles)を参照してください。
:::

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

[comment]: # ({617ba57c-617ba57c})
### パラメーター

`(array)` 削除するホストインターフェースのID。

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

[comment]: # ({61a8b976-61a8b976})
### 戻り値

`(object)` `interfaceids`プロパティの下にある削除されたホストインターフェースのIDを含むオブジェクトを返します。

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

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

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

[comment]: # ({9639e082-91934c15})
#### ホストインターフェースの削除

ID 30062のホストインターフェースを削除します。

リクエスト:

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

レスポンス:

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

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

[comment]: # ({a3d1e725-a3d1e725})
### 参照

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

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

[comment]: # ({cf54c99c-cf54c99c})
### ソース

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

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