> For the complete documentation index, see [llms.txt](https://docs.udara360.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.udara360.io/udara360-docs-1/operations/delete-document.md).

# Delete Document

To delete a document, make a <mark style="color:blue;">`PUT`</mark> request to this endpoint, passing the document's `id` (the identifier returned when it was uploaded) in the request body as JSON.

A successful request returns `true`, confirming the document was deleted.

This process allows you to remove a previously uploaded document from a customer or account record; for example, when a document was uploaded in error or needs to be replaced.

<mark style="color:blue;">`PUT`</mark> `/api/Operations/v1/DeleteDocument`

**Headers**

| Name              | Value                | Description                                 |
| ----------------- | -------------------- | ------------------------------------------- |
| Content-Type      | `application/json`   | Format of the request payload               |
| Authorization     | `bearer {token}`     | Access token obtained from Get Access Token |
| request-reference | `{unique_reference}` | A unique reference identifying this request |

**Body Parameters**

<table><thead><tr><th>Name</th><th>Data Type</th><th data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td>true</td><td>The document identifier returned when it was uploaded</td></tr></tbody></table>

**Body table**

| Field | Data Type | Description                                   |
| ----- | --------- | --------------------------------------------- |
| data  | boolean   | Whether the document was successfully deleted |

Here is an example request and response with a sample payload sent to the endpoint in Curl format.

<details>

<summary>Sample Request</summary>

```json
curl --location -g --request PUT '{{baseurl}}/api/Operations/v1/DeleteDocument' \
--header 'Authorization: bearer {token}' \
--header 'request-reference: {unique_reference}' \
--header 'Content-Type: application/json' \
--data '{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
```

</details>

<details>

<summary>Response : <code>200</code></summary>

```
{
  "status": true,
  "message": "string",
  "data": true
}
```

</details>
