---
title: "Delete several movements at once"
method: POST
path: "/api/v1/banking/accounts/{accountId}/movements/delete"
tags: ["Money"]
---

# Delete several movements at once

`POST /api/v1/banking/accounts/{accountId}/movements/delete`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/banking/accounts/{accountId}/movements/delete`
- Auth: API key in cookie `better-auth.session_token`

Removes the movements named in `movementIds`, up to 200, in one batch, and works the balances out again. All or nothing: if any of them came from a connected bank or is placed against what it paid, nothing is deleted and `details` names them as `fromBank` and `placed`.

## Path parameters

- `accountId` string, required

## Request body

- object
  - `movementIds` string[], required

## Response `200`

Gone.

- object
  - `ok` unknown, required
  - `data` object, required
    - `deleted` boolean, required
    - `movements` number, required: Movements removed.
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `400`: No ids, or more than the ceiling.
- `404`: No such account, or one of the movements is not on it.
- `409`: One of the movements came from a connected bank, or is placed against what it paid. Nothing was deleted.

---

[API](https://skmtc.dev/dardaris/apis/dardaris-api.md) · [All operations](https://skmtc.dev/dardaris/apis/dardaris-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dardaris/apis/dardaris-api/revisions/4aff33835c73?raw)
