Usage
Parameters
document_id
(str): ID of the document to delete
Returns
A dictionary containing information about the deletion operation:message
(str): A success message indicating the document was deleteddocument_id
(str): The ID of the deleted document- Additional fields may be present with more details about the operation
Description
This method deletes a document and all its associated data, including:- Document metadata in the database
- Document content in storage
- Document chunks and embeddings in the vector store
Finding Document IDs
If you don’t know the document ID, you can use other methods to find it:Notes
- For convenience, you can also use the delete_document_by_filename method if you know the filename but not the ID.
- This operation requires appropriate permissions for the document.
- Deleting a document that is part of an existing knowledge graph will not automatically update the graph. You may need to recreate or update the graph separately.