# Delete a product

`DELETE /api/bobsync/products?id=1234`

**Base URLs:**

- Sandbox: `https://api.tools.qa.bobshop.co.za`
- Production: `https://api.tools.bobshop.co.za`

**Authentication:** Bearer token required (see the Authentication page).

## Example request

```bash
curl -X DELETE 'https://api.tools.qa.bobshop.co.za/api/bobsync/products?id=1234' \
  -H "Authorization: Bearer <API_KEY>"
```

Delete a product. The corresponding listing on Bob Shop is closed.

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | integer | yes | Our id for the product. |

The endpoint takes our `id` only, not `product_reference`. The `id` is in the
response to every successful push.

A successful delete returns `204 No Content` with an empty body. The deletion
is queued, so the listing closes shortly after, not at once.

## Failures

| Status | Body | Meaning |
| --- | --- | --- |
| `400` | `Invalid id.` | `id` was missing or not a positive number. |
| `400` | `product does not belong to channel` | The product belongs to another channel. |
| `404` | `could not find product with id: 1234` | No product with that id. |
