---
title: "Remove all compare items"
method: POST
path: "/delete-all-compare-items"
tags: ["CompareItem"]
---

# Remove all compare items

`POST /delete-all-compare-items`

## Request

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

Removes every compare item for the authenticated customer.

## Headers

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

## Response `201`

All compare items were removed.

## Other responses

- `400`: Invalid input
- `422`: Validation Error

---

[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)
