---
title: "Delete Failed Accounting Document"
method: DELETE
path: "/accounting-documents/{document_id}"
tags: ["accounting-settings"]
---

# Delete Failed Accounting Document

`DELETE /accounting-documents/{document_id}`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/accounting-documents/{document_id}`
- Auth: none declared

Remove a ``failed`` accounting document row (Lane N-ingest, F2845).

For a failure Retry cannot change (an unreadable or oversize file, expired bytes): the
person uploads a different file, and this takes the dead row off the Opening documents
card and out of the work list. 409 unless the document is ``failed``, and 409 if
anything already references it (a failed row normally owns nothing; this is the check,
not an assumption). 404 missing / 403 out of scope.

Accountant/owner (ZCT-257), like the retry beside it.

## Path parameters

- `document_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- MsgResponse: The ``{"msg": "..."}`` envelope — the error contract and many successes.
  - `msg` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
