> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flipapp.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a product

> Delete a product that is not used in a publishing program.

Deletes a product from your organisation.

Products linked to publishing programs cannot be deleted — remove those program
links first, or you receive a conflict error.

## Headers

<ParamField header="x-api-key" type="string" required>
  Organisation API key.
</ParamField>

<ParamField header="Accept-Version" type="string" default="1.0">
  API version. Use `1.0`.
</ParamField>

## Path parameters

<ParamField path="id" type="string" required>
  Product UUID.
</ParamField>

## Response

Returns **200** with a deletion confirmation.

<ResponseField name="success" type="boolean" required>
  `true` when the delete request completes.
</ResponseField>

<ResponseField name="data" type="object" required>
  Deletion payload.

  <Expandable title="properties">
    <ResponseField name="id" type="string">
      Product UUID that was requested for deletion.
    </ResponseField>

    <ResponseField name="deleted" type="boolean">
      `true` when the delete operation ran.
    </ResponseField>
  </Expandable>
</ResponseField>

## Errors

| Status | Code                                | When                                               |
| ------ | ----------------------------------- | -------------------------------------------------- |
| `409`  | `CONFLICT`                          | Product is used in one or more publishing programs |
| `401`  | —                                   | Missing or invalid API key                         |
| `500`  | `DATABASE_ERROR` / `INTERNAL_ERROR` | Unexpected server error                            |

<RequestExample>
  ```bash theme={null}
  curl -X DELETE "https://vzguoukmiwxvqdnabfma.supabase.co/functions/v1/api/products/123e4567-e89b-12d3-a456-426614174000" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Accept-Version: 1.0"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "deleted": true
    }
  }
  ```
</ResponseExample>
