---
title: "Delete Matching"
method: DELETE
path: "/public/api/salesdata"
tags: ["Business KPIs data - salesdata"]
---

# Delete Matching

`DELETE /public/api/salesdata`

## Request

- Base URL: `https://<base_url>`
- URL: `https://<base_url>/public/api/salesdata`
- Auth: HTTP bearer

Delete every salesdata that matches a where clause, in one request. The body is the where clause itself, written with the public field names, like the `where` of Get All.

* A field takes a plain value, or an object with one of these operators: `inq`, `nin`, `gt`, `gte`, `lt`, `lte`, `neq`, `between`, `like`, `nlike`, `ilike`, `nilike`.

* The store fields (`store_id`, `store_client_id`, `store_title`, `store_address`) take a plain value, or one of `inq`, `nin`, `neq`. Use only one store field per level.

* To match a list of values, use `inq`: `{"store_id": {"inq": ["id1", "id2"]}}`. A bare array such as `{"store_id": ["id1", "id2"]}` is rejected.

* `and` and `or` take an array of non-empty where clauses, and cannot be mixed with fields at the same level.

**Warning: a request that matches 40,000 salesdata or more is rejected and deletes nothing; split it into smaller deletes, for example by store or by date. An empty where clause is rejected too.**

## Headers

- `Accept` string

## Request body

- object
  - `category` string
  - `store_id` object
    - `inq` string[]
  - `reporting_date` object
    - `lt` string

## Response `200`

OK

- object
  - `count` number

## Changes

- **2026-11-04** `ab92bcf4a3eb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/yoobic/apis/yoobic-public-api/changes/public/api/salesdata/delete.md)

---

[API](https://skmtc.dev/yoobic/apis/yoobic-public-api.md) - [All operations](https://skmtc.dev/yoobic/apis/yoobic-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/yoobic/apis/yoobic-public-api/revisions/2f9404f930a7?raw)
