# Product images deletion

URL: https://shoptet.dev/news/api/product-images-deletion

February 19, 2021 · One min read
Pavel Husa

We are working hard to support product images maintenance via API. As one of the preparation steps we have released two DELETE endpoints today:

- [Delete product image](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/deleteoneproductimage) – deletes one image specified by a `gallery` and an `imageName` for a product specified by a `guid` .
- [Delete all product images](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/deleteallproductimagesingallery) – deletes all images in one gallery of one product.
There are two galleries used in Shoptet:

- `shop` – this is the common gallery for product images displayed on the product detail page;
- `shop360` – this is a gallery for a 360° image, if used.
Both of the endpoints support optional parameter `?removeReference=true|false` . It affects eventual reference of an image to one of the product variants. If `true` , the reference (if any) is removed. If there would be a reference, but the parameter is `false` or not provided, the deletion would fail with code `409` .

**Tags:**
- [API](/news/tags/api/)
