---
search:
  tags:
    - 商品
    - DELETE
seo:
  description: >-
    必要なスコープ: products:write。画像が無くても200を返す。 Reference for the DELETE
    /products/{product_id}/image endpoint in the Cozeni 外部 API.
sidebar:
  label: 商品の画像を削除する
  badge: DELETE
title: 商品の画像を削除する
type: openapi-operation
---
必要なスコープ: products:write。画像が無くても200を返す。

`DELETE /products/{product_id}/image`

**Responses**

- `200` — 公開商品情報。リンクは別APIで取得する。
- `400` — invalid\_input。未知フィールド、無効なcursor・入力を含む。
- `401` — unauthorized。失効、期限切れ、環境違いを含む。
- `403` — insufficient\_scope。
- `404` — product\_not\_found / checkout\_link\_not\_found。他人の商品も404。
- `409` — idempotency\_conflict / product\_archived / checkout\_link\_disabled。
- `429` — rate\_limited。
- `500` — internal。
- `503` — unavailable。

Response example, 200:

```json
{
  "id": "string",
  "name": "string",
  "price_jpy": 0,
  "currency": "jpy",
  "recurring_interval": "month",
  "trial_interval": "day",
  "trial_interval_count": 1,
  "access_url": "string",
  "access_type": "page",
  "metadata": {
    "daily_messages": 100,
    "plan": "pro",
    "beta": true
  },
  "description": "string",
  "images": [
    {
      "id": "string",
      "url": "http://example.com",
      "content_type": "string",
      "size_bytes": 0
    }
  ],
  "status": "active",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
```
