DELETE

Delete Document

Remove a document from your database by its ID. This permanently deletes the document and its associated embeddings.

Endpoint

DELETE /databases/{db_id}/documents/{doc_id}

Path Parameters

db_idstring · requiredThe database ID
doc_idstring · requiredThe document ID to delete

Response

Returns the deleted document with its metadata.

vector_idstringUnique ID of the deleted document
contentstring | nullThe document's text content (if applicable)
metadataobject | nullAssociated metadata JSON object
created_atstringISO 8601 timestamp of when the document was created

Example Response

{
  "vector_id": "4de5bed5-e483-4bd7-9760-a54ec07aefd9",
  "content": "How to fix a leaky kitchen faucet",
  "metadata": {
    "category": "home-repair"
  },
  "created_at": "2024-01-15T10:30:00Z"
}