**版本：202201**

# 删除商品图片

**DELETE** `/openapi/2022-01/products/:product_id/images/:image_id`

通过的商品图片 ID 删除指定的商品图片。

## 请求

**Path参数**

- `product_id` string (required)

  商品 ID。
- `image_id` string (required)

  图片 ID。

## 响应

**200 | 404 | 422**

200

**application/json**

无 Schema

404

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Product not found"
  ]
}
```

```json
{
  "errors": [
    "Product not found"
  ]
}
```

422

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "ProductId must be a valid UUID"
  ]
}
```

```json
{
  "errors": [
    "ProductId must be a valid UUID",
    "ImageId must be a valid UUID"
  ]
}
```
