delete_collection() — langchain Function Reference
Architecture documentation for the delete_collection() function in vectorstores.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 52d11c13_911b_65df_7856_22e4051beba5["delete_collection()"] d25f9e94_3ec0_b9ca_7d2f_eb7ef487ccab["Chroma"] 52d11c13_911b_65df_7856_22e4051beba5 -->|defined in| d25f9e94_3ec0_b9ca_7d2f_eb7ef487ccab 00972e63_5290_781a_797b_6a15236bafe9["reset_collection()"] 00972e63_5290_781a_797b_6a15236bafe9 -->|calls| 52d11c13_911b_65df_7856_22e4051beba5 style 52d11c13_911b_65df_7856_22e4051beba5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/chroma/langchain_chroma/vectorstores.py lines 1124–1127
def delete_collection(self) -> None:
"""Delete the collection."""
self._client.delete_collection(self._collection.name)
self._chroma_collection = None
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does delete_collection() do?
delete_collection() is a function in the langchain codebase, defined in libs/partners/chroma/langchain_chroma/vectorstores.py.
Where is delete_collection() defined?
delete_collection() is defined in libs/partners/chroma/langchain_chroma/vectorstores.py at line 1124.
What calls delete_collection()?
delete_collection() is called by 1 function(s): reset_collection.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free