> For the complete documentation index, see [llms.txt](https://wiki.dieagenturverwaltung.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.dieagenturverwaltung.de/die-agenturverwaltung-en/finanzen-1/allgemeines-zu-finanzdokumenten/dokumente-loeschen-und-stornieren.md).

# Delete and cancel documents

![Sample view of the delete and cancellation function of an invoice](/files/791fc87efd8f91dcff85f044459272daa905c049)

## Delete document

In the "Options" tab a financial document can be deleted.

For invoices and credit invoices the possibility of deletion depends on whether the incremental number of the invoice number series is the highest in its series.

{% hint style="info" %}
**Example**

AKA-2020-003 can be deleted\
AKA-2020-002 can only be cancelled\
AKA-2020-001 can only be cancelled\
AKA-2019-087 can be cancelled or deleted\
AKA-2019-086 can only be cancelled\
AKA-2019-085 can only be cancelled\
...
{% endhint %}

## Cancel document

When cancelling an invoice or credit invoice a copy of the document is created with a new number whose amounts are multiplied by -1. That means both documents together are accounting-wise neutral.

In the print version a box in the footer of both documents refers to the cancelled document or the source document of the cancellation invoice.

![](/files/994e9650dd2dfcee20152081b733d1c6f6446421)

The payment status of these two documents is set to "cancelled".


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.dieagenturverwaltung.de/die-agenturverwaltung-en/finanzen-1/allgemeines-zu-finanzdokumenten/dokumente-loeschen-und-stornieren.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
