# Deleting a document

You can delete a document by clicking 'Settings | Delete'.

<figure><img src="/files/9BRHzJADsGUtcjEZFvDz" alt="" width="197"><figcaption></figcaption></figure>

{% hint style="warning" %}
You cannot delete a published document. Mark it as a draft first.
{% endhint %}

{% hint style="info" %}
Only users with a Review badge, which includes the 'Can delete document' permission, can delete a document.
{% endhint %}

{% hint style="info" %}
If you delete a document by accident, an administrator can undelete it for you.

Administrators: visit `/admin/indigo_api/document/` and click on the document to recover, scroll down to find the **Deleted** checkbox, uncheck it and click 'Save'.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.laws.africa/how-tos/documents-and-document-settings/deleting-a-document.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
