---
title: "DELETE /records"
method: DELETE
path: "/records"
---

# DELETE /records

`DELETE /records`

## Headers

- `x-api-key` string, required
- `x-brand-key` string, required

## Request body

- union[] — Deletes entities - cascades automatically so all Markets and Selections will automatically be deleted when the Event is deleted
  - union
    - object — The selection key to be deleted
      - `selectionKey` string, required
    - object — The market key to be deleted
      - `marketKey` string, required
    - object — The event key to be deleted
      - `eventKey` string, required
    - object — The category key to be deleted
      - `categoryKey` string, required
    - object — The class key to be deleted
      - `classKey` string, required
    - object — The type key to be deleted
      - `typeKey` string, required

## Response `202`

Accepted request

- Response
  - `success` boolean — Have all records been accepted successfully. If false, some or all records may not have been recorded

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/optimove/apis/optimove-api.md) · [All operations](https://skmtc.net/optimove/apis/optimove-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/optimove/optimove-api/versions/fc55c5b1bec5/schema)
