adelete() — langchain Function Reference
Architecture documentation for the adelete() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 63122174_d564_45b4_ad3e_b8068f13f262["adelete()"] dee85009_1bbd_59e1_bb92_3ca6bbef9a2b["DocumentIndex"] 63122174_d564_45b4_ad3e_b8068f13f262 -->|defined in| dee85009_1bbd_59e1_bb92_3ca6bbef9a2b style 63122174_d564_45b4_ad3e_b8068f13f262 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/indexing/base.py lines 581–602
async def adelete(
self, ids: list[str] | None = None, **kwargs: Any
) -> DeleteResponse:
"""Delete by IDs or other criteria. Async variant.
Calling adelete 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.
Returns:
A response object that contains the list of IDs that were
successfully deleted and the list of IDs that failed to be deleted.
"""
return await run_in_executor(
None,
self.delete,
ids,
**kwargs,
)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does adelete() do?
adelete() is a function in the langchain codebase, defined in libs/core/langchain_core/indexing/base.py.
Where is adelete() defined?
adelete() is defined in libs/core/langchain_core/indexing/base.py at line 581.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free