delete() — langchain Function Reference
Architecture documentation for the delete() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 33dce58f_1d29_9b9b_da08_f158192d9078["delete()"] dee85009_1bbd_59e1_bb92_3ca6bbef9a2b["DocumentIndex"] 33dce58f_1d29_9b9b_da08_f158192d9078 -->|defined in| dee85009_1bbd_59e1_bb92_3ca6bbef9a2b style 33dce58f_1d29_9b9b_da08_f158192d9078 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/indexing/base.py lines 565–579
def delete(self, ids: list[str] | None = None, **kwargs: Any) -> DeleteResponse:
"""Delete by IDs or other criteria.
Calling delete without any input parameters should raise a ValueError!
Args:
ids: List of IDs to delete.
**kwargs: Additional keyword arguments. This is up to the implementation.
For example, can include an option to delete the entire index,
or else issue a non-blocking delete etc.
Returns:
A response object that contains the list of IDs that were
successfully deleted and the list of IDs that failed to be deleted.
"""
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does delete() do?
delete() is a function in the langchain codebase, defined in libs/core/langchain_core/indexing/base.py.
Where is delete() defined?
delete() is defined in libs/core/langchain_core/indexing/base.py at line 565.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free