---
title: "Unselect Image"
method: POST
path: "/cgi/product_image_unselect.pl"
tags: ["Images"]
---

# Unselect Image

`POST /cgi/product_image_unselect.pl`

## Request

- Base URL: `https://world.openfoodfacts.net`
- URL: `https://world.openfoodfacts.net/cgi/product_image_unselect.pl`
- Auth: API key in header `User-Agent`

This endpoint allows the user to unselect a photo for a product.
The user must provide the product code and the image ID to unselect.

## Request body `multipart/form-data`

- UnselectAPhoto
  - `code` string: code of the product
  - `id` string: image field (image id) of the photo to unselect

## Response `200`

OK

- object
  - `status` string: status of the unselect operation
  - `status_code` number: status code of the operation
  - `imagefield` string: image field that was unselected

## Changes

- **2026-11-18** `ebaef6823f1f`: 1 breaking, 2 info
  - the request's body type changed from no type to `object`
  - added the new optional request property `code`
  - added the new optional request property `id`
- **2025-07-02** `7193ad484e5d`: 2 info
  - api tag `Images` added
  - api tag `Write Requests` removed

[Operation history](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-api/changes/cgi/product_image_unselect.pl/post.md)

---

[API](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-api.md) - [All operations](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-api/revisions/ebaef6823f1f?raw)
