[comment]: # translation:outdated

[comment]: # ({46b153da-46b153da})
# image.delete

[comment]: # ({/46b153da-46b153da})

[comment]: # ({0a94a9d5-60f587fa})
### 説明

`object image.delete(array imageIds)`

このメソッドは、画像を削除することができます。

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

[comment]: # ({/0a94a9d5-60f587fa})

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

`(array)` 削除する画像のID。

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

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

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

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

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

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

[comment]: # ({caf12312-925dee02})
#### 複数の画像の削除

2つの画像を削除します。

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

```json
{
    "jsonrpc": "2.0",
    "method": "image.delete",
    "params": [
        "188",
        "192"
    ],
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "imageids": [
            "188",
            "192"
        ]
    },
    "id": 1
}
```

[comment]: # ({/caf12312-925dee02})

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

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

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