Langchain (Python)
delete( ids: Optional[List[str]] = None, delete_index: bool = False ) -> bool
ids
Optional[List[str]]
delete_index
bool
# Delete specific documents doc_ids = ["doc1", "doc2", "doc3"] success = store.delete(ids=doc_ids) if success: print("Documents deleted successfully") # Delete the entire index success = store.delete(delete_index=True) if success: print("Index deleted successfully")
Was this page helpful?