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

# Delete data

> Delete rows by primary key. The batch is applied only when every row in the request can be deleted.

## Delete data

Deletes rows from a table. The request has the same path, headers, and JSON array body as [Set data](/api-reference/endpoint/SET-DATA), including the limit of 2000 objects per request. Each object only needs the primary key columns for that row. Read [Table metadata](/api-reference/endpoint/TABLE-METADATA) to see which columns have `is_primary_key` set to `true`.

The batch is applied as a whole. Every row in the request is deleted, or none of them are.

```http theme={null}
DELETE {api_url}/api/tables/{TableName}

Content-Type: application/json
Authorization: Bearer {token} // or ApiKey
client_id: {unique client id} // when using ApiKey, client_id is not needed

[
  {
    "cd_ItemNumber": "ABC123"
  },
  {
    "cd_ItemNumber": "ABC125"
  }
]
```

| Path parameter | Description |
| - | - |
| `{TableName}` | Name of the table to delete from. |

Send every primary key column when the table uses a composite key. Other columns can be omitted.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.