DELETE
/
library
/
{library_id}
/
document
/
{document_id}
curl --request DELETE \
  --url https://api.libraria.ai/library/{library_id}/document/{document_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "doc_1",
  "object": "document",
  "deleted": true
}

Parameters

library_id
string
required

The ID of the library to add the document to

document_id
string
required

The ID of the document to delete

Response

id
string

The ID of the document that was deleted

object
string

The type of object deleted

deleted
boolean

Whether or not the document was deleted