Home / Function/ delete() — langchain Function Reference

delete() — langchain Function Reference

Architecture documentation for the delete() function in vectorstores.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  97f3b6a5_84ce_8b43_e9cc_7e18081fb982["delete()"]
  bf62db79_4217_463c_798f_6f8528ed0d6e["Qdrant"]
  97f3b6a5_84ce_8b43_e9cc_7e18081fb982 -->|defined in| bf62db79_4217_463c_798f_6f8528ed0d6e
  style 97f3b6a5_84ce_8b43_e9cc_7e18081fb982 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/qdrant/langchain_qdrant/vectorstores.py lines 1150–1165

    def delete(self, ids: list[str] | None = None, **kwargs: Any) -> bool | None:
        """Delete by vector ID or other criteria.

        Args:
            ids: List of ids to delete.
            **kwargs: Other keyword arguments that subclasses might use.

        Returns:
            True if deletion is successful, `False` otherwise.

        """
        result = self.client.delete(
            collection_name=self.collection_name,
            points_selector=ids,
        )
        return result.status == models.UpdateStatus.COMPLETED

Subdomains

Frequently Asked Questions

What does delete() do?
delete() is a function in the langchain codebase, defined in libs/partners/qdrant/langchain_qdrant/vectorstores.py.
Where is delete() defined?
delete() is defined in libs/partners/qdrant/langchain_qdrant/vectorstores.py at line 1150.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free