> 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](https://4063991107-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La4YdZ1Gw5iHapqZfIo%2F-M1oDtOfVVjpuxh4cI_w%2F-M1oEFjLcUR1vYeof9Lg%2FBildschirmfoto%202020-03-07%20um%2015.46.30.png?alt=media\&token=e65dc20c-834d-4125-90c6-373f5304005e)

## 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.

![](https://4063991107-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-La4YdZ1Gw5iHapqZfIo%2F-M1oFOqIkzSqHqHNQ_b3%2F-M1oHRe6bFM6P3iHU7Zd%2FBildschirmfoto%202020-03-07%20um%2016.18.09.png?alt=media\&token=102e510d-576c-4644-a8c3-d783ad736103)

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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
