Skip to main content

Documentation Index

Fetch the complete documentation index at: https://databridge-add-core-funcs.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Delete a document and all its associated data including metadata, stored content, and vector embeddings.
from morphik import Morphik

db = Morphik("your-uri")

# Delete by document ID
result = db.delete_document("doc_abc123")
print(result)  # {"status": "success", "message": "Document deleted"}

# Delete by filename
result = db.delete_document_by_filename("report.pdf")

Parameters

ParameterTypeDescription
document_idstringThe unique identifier of the document to delete

Response

{
  "status": "success",
  "message": "Document doc_abc123 and all associated data deleted successfully"
}
This action is irreversible. All document data including chunks and embeddings will be permanently removed.