---
title: "Remove a compare item"
method: DELETE
path: "/compare_items/{id}"
tags: ["CompareItem"]
---

# Remove a compare item

`DELETE /compare_items/{id}`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/compare_items/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/compare_items/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes a compare item owned by the authenticated customer.

## Path parameters

- `id` string, required

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Response `204`

Compare item removed. No content.

## Other responses

- `404`: Compare item not found or not owned by the caller.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
