> ## Documentation Index
> Fetch the complete documentation index at: https://docs.libraria.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Document

> Delete a document from a library

### Parameters

<ParamField path="library_id" type="string" required={true}>
  The ID of the library to add the document to
</ParamField>

<ParamField path="document_id" type="string" required={true}>
  The ID of the document to delete
</ParamField>

### Response

<ResponseField name="id" type="string">
  The ID of the document that was deleted
</ResponseField>

<ResponseField name="object" type="string">
  The type of object deleted
</ResponseField>

<ResponseField name="deleted" type="boolean">
  Whether or not the document was deleted
</ResponseField>

<ResponseExample>
  ```json Example Response
  {
    "id": "doc_1",
    "object": "document",
    "deleted": true
  }
  ```
</ResponseExample>
