---
title: "Batch delete transactions"
method: DELETE
path: "/v1/transactions/batch"
tags: ["Transactions"]
---

# Batch delete transactions

`DELETE /v1/transactions/batch`

## Request

- Base URL: `https://api.triqai.com`
- URL: `https://api.triqai.com/v1/transactions/batch`
- Auth: API key in header `X-API-Key`

Delete multiple transactions in a single request. Provide exactly **one** of:
- `all: true` — delete every transaction for the organization
- `afterDate` — delete all transactions created on or after the given ISO 8601 date
- `ids` — delete specific transactions by UUID (max 1000)

Temporary private data is purged after deletion. If cleanup is incomplete,
returns 503; retry the same request to continue cleanup, even if the
transaction records have already been deleted.

## Request body

- union: Provide exactly one of `all`, `afterDate`, or `ids`.
  - object
    - `all` true, required: When `true`, deletes all transactions for the organization.
  - object
    - `afterDate` string, date-time, required: Delete all transactions created on or after this date.
  - object
    - `ids` string[], required: Delete specific transactions by UUID (max 1000).

## Response `200`

Batch deletion completed

- BatchDeleteResponse
  - `success` true, required
  - `data` object, required
    - `deleted` true, required
    - `count` integer, required: Number of transactions deleted.
  - `meta` ResponseMeta, required
    - `generatedAt` string, date-time, required
    - `requestId` string, required
    - `version` string, required

## Other responses

- `401`: Authentication failed or missing credentials
- `403`: Authenticated but not authorized
- `422`: Request validation failed
- `429`: Rate limit exceeded
- `500`: Internal server error
- `503`: Service temporarily unavailable

---

[API](https://skmtc.dev/triqai/apis/triqai-transaction-enrichment-api.md) - [All operations](https://skmtc.dev/triqai/apis/triqai-transaction-enrichment-api/llms.txt) - [OpenAPI document](https://skmtc.dev/triqai/apis/triqai-transaction-enrichment-api/revisions/da1b24723e53?raw)
