[comment]: # ({1b9515ab-1b9515ab})
# itemprototype.delete

[comment]: # ({/1b9515ab-1b9515ab})

[comment]: # ({88b4accc-ee2fdfa0})
### 説明

`object itemprototype.delete(array itemPrototypeIds)`

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

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

[comment]: # ({/88b4accc-ee2fdfa0})

[comment]: # ({7755a7b3-7755a7b3})
### パラメーター

`(array)` 削除するアイテムのプロトタイプのID。

[comment]: # ({/7755a7b3-7755a7b3})

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

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

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

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

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

[comment]: # ({f3f0bac3-0c135019})
#### 複数のアイテムプロトタイプの削除

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

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

```json
{
    "jsonrpc": "2.0",
    "method": "itemprototype.delete",
    "params": [
        "27352",
        "27356"
    ],
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "prototypeids": [
            "27352",
            "27356"
        ]
    },
    "id": 1
}
```

[comment]: # ({/f3f0bac3-0c135019})

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

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

[comment]: # ({/8cee4f1f-8cee4f1f})
