> For the complete documentation index, see [llms.txt](https://docs.autentique.com.br/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autentique.com.br/api/mutations/removing-a-document.md).

# Removing a document

To delete a document, you must use the following mutation:

```graphql
mutation {
  deleteDocument(id: "DOCUMENT_ID")
}
```

**Parameters:**

* `id`: A `String` (UUID!) that represents the unique identifier of the document you want to delete.

#### Expected response?

```graphql
{
  "data": {
    "deleteDocument": true
  }
}
```

{% hint style="danger" %}
**IMPORTANT:** The delete document mutation functions the same way as deleting from the dashboard — it does **not** block the document. This means that if the document has already been signed by any of the parties, it will only be moved to the trash of the user who made the request.

In such cases, it is recommended to perform an **update document** request and set the `deadline_at` field to the current time. This effectively **blocks the document** from further signing.
{% endhint %}

{% hint style="info" %}
You can check what each of these parameters means directly in the full GraphQL API documentation, in the Docs menu of [Altair](https://altair.autentique.com.br/). If you're not sure how to do that, check out our tutorial on [**Using Altair**](/api/integration-basics/altair.md).
{% endhint %}

{% hint style="info" %}
If Altair doesn't help you integrate with the API, check out some examples of how to make these requests in other ways: <https://graphql.org/graphql-js/graphql-clients/>
{% endhint %}
