> For the complete documentation index, see [llms.txt](https://docs.laws.africa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.laws.africa/how-tos/documents-and-document-settings/deleting-a-document.md).

# 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 %}
