---
title: "Delete a product image"
description: "Deletes a product image and its generated image variants."
type: "mcp_operation"
company: "RevCent"
operation_id: "DeleteProductImage"
canonical: "https://revcent.com/documentation/markdown/mcp/operation/DeleteProductImage.md"
api_schema: "https://revcent.com/documentation/files/api/operation/DeleteProductImage.json"
---

# RevCent MCP Guide: `DeleteProductImage`

Deletes a product image and its generated image variants.

## Operation

- API: `POST /v2/products/{product_id}/images/{product_image_id}/delete`
- Required permission: `product:delete`.
- Available profiles: MCP and AI Assistants.
- Related overview: [OverviewProductImage](https://revcent.com/documentation/markdown/mcp/operation/OverviewProductImage.md).

## Inputs

| Parameter | Location | Required | Meaning |
|---|---|---|---|
| `product_id` | URL path | Yes | The product that owns the image. IDs contain 20 characters. |
| `product_image_id` | URL path | Yes | The image belonging to that product. Use its returned `id`. IDs contain 20 characters. |

MCP arguments include these identifiers. In a direct HTTP request, substitute them into the URL; do not duplicate them in the JSON body.

No request-body properties are needed. For HTTP, omit the body or send `{}`. The action deletes the selected image and its generated variants.

## MCP argument example

```json
{
  "product_id": "PPPPPPPPPPPPPPPPPPPP",
  "product_image_id": "IIIIIIIIIIIIIIIIIIII"
}
```

IDs and the example URL are illustrative. Use the product ID and an image ID returned for that product; for uploads, substitute the actual public image URL.

## Result and next step

A successful response can include `product_id`, `product_image_id`, `result`, and API response metadata. When included, `product_image` contains the affected image's details. This mutation response differs from the flat GetProductImage detail response.

Use [GetProductImages](https://revcent.com/documentation/markdown/mcp/operation/GetProductImages.md) to review the remaining images. Do not continue using the deleted image's URLs as product assets. This action deletes the image, not the product.

[OverviewProductImage](https://revcent.com/documentation/markdown/mcp/operation/OverviewProductImage.md) describes the image fields and lifecycle. API errors can include `code: 0`, `error_code`, `message`, and `result`; use the response to determine whether the request completed.


---
Document Parent Directory
* [Operations](https://revcent.com/documentation/markdown/mcp/operation/index.md) - AI/MCP details and overviews for operations available within the RevCent MCP.