---
title: "Delete transactions"
method: POST
path: "/connector/users/{externalUserId}/transactions/delete"
tags: ["ENTERPRISE", "Connector.Transaction", "MULTI_TENANT"]
---

# Delete transactions

`POST /connector/users/{externalUserId}/transactions/delete`

Removes transactions. When deleting transactions, it's only the externalId of each transaction that is necessary.

## Path parameters

- `externalUserId` string, required

## Request body

- DeleteTransactionAccountsContainer — Container of account and transactions.
  - `transactionAccounts` DeleteTransactionAccountEntity[], required — The transaction accounts.
    - `balance` number, double, required — The balance of the account for the time of the last transaction in the list.
    - `externalId` string, required — External identifier for the account the transaction belong to.
    - `payload` object — The payload property can include arbitrary metadata provided by the financial institution in question that can be used either for deep-linking back to the app of the financial institution, for displaying additional information about the account, or for backend purposes such as automatic categorization improvement, etc. The format is key-value, where key is a String and value any object.
    - `reservedAmount` number, double — The reserved amount of the account for the time of the last transaction in the list.
    - `transactions` DeleteTransactionEntity[], required — The transaction list.
      - `externalId` string, required — External identifier for the transaction.
  - `type` 'REAL_TIME' | 'HISTORICAL' | 'BATCH', required — Defines the priority of the delete request. Only `REAL_TIME` is supported for reflecting the most recent updates on a user's account. For deleting whole account with transactions use [Delete account](https://docs.tink.com/api#connector/account/delete-account) instead. Please use [Delete user](https://docs.tink.com/api#general/user/delete-user) for deleting all user data with transactions.

## Response `204`

Transactions deleted.

## Other responses

- `400` — The payload does not pass validation, or the specified account does not exist.
- `401` — Unauthorized.
- `404` — User with the given external id not found.

---

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