Home / Function/ delete() — langchain Function Reference

delete() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cca01edb_baae_2f18_e351_a23fb84738c3["delete()"]
  671b47a0_cdd3_a89d_e90f_0631a4bd67d3["QdrantVectorStore"]
  cca01edb_baae_2f18_e351_a23fb84738c3 -->|defined in| 671b47a0_cdd3_a89d_e90f_0631a4bd67d3
  style cca01edb_baae_2f18_e351_a23fb84738c3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/qdrant/langchain_qdrant/qdrant.py lines 856–875

    def delete(  # type: ignore[override]
        self,
        ids: list[str | int] | None = None,
        **kwargs: Any,
    ) -> bool | None:
        """Delete documents by their ids.

        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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free