[comment]: # translation:outdated

[comment]: # ({cd0e20e4-cd0e20e4})
# item.delete

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

[comment]: # ({f4397773-16951644})
### 説明

`object item.delete(array itemIds)`

このメソッドは、アイテムを削除することができます。

::: noteclassic
Webアイテムは、Zabbix APIを使用しての削除はできません。
:::

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

[comment]: # ({/f4397773-16951644})

[comment]: # ({3574199c-3574199c})
### パラメーター

`(array)` 削除するアイテムのID。

[comment]: # ({/3574199c-3574199c})

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

`(object)` `itemids`プロパティの下にある削除されたアイテムのIDを含むオブジェクトを返します。

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

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

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

[comment]: # ({23911e9d-92fe5da6})
#### 複数のアイテムの削除

2つのアイテムを削除します。\
マスターアイテムが削除されると、依存アイテムとアイテムのプロトタイプは自動的に削除されます。

[リクエスト](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "item.delete",
    "params": [
        "22982",
        "22986"
    ],
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "itemids": [
            "22982",
            "22986"
        ]
    },
    "id": 1
}
```

[comment]: # ({/23911e9d-92fe5da6})

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

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

[comment]: # ({/4c7d30be-4c7d30be})
