LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreindexingbaseDeleteResponse
    Class●Since v0.2

    DeleteResponse

    A generic response for delete operation.

    The fields in this response are optional and whether the VectorStore returns them or not is up to the implementation.

    Copy
    DeleteResponse()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    num_deletedint
    succeededSequence[str]
    failedSequence[str]
    num_failedint

    Attributes

    attribute
    num_deleted: int

    The number of items that were successfully deleted.

    If returned, this should only include actual deletions.

    If the ID did not exist to begin with, it should not be included in this count.

    attribute
    succeeded: Sequence[str]

    The IDs that were successfully deleted.

    If returned, this should only include actual deletions.

    If the ID did not exist to begin with, it should not be included in this list.

    attribute
    failed: Sequence[str]

    The IDs that failed to be deleted.

    Warning

    Deleting an ID that does not exist is NOT considered a failure.

    attribute
    num_failed: int

    The number of items that failed to be deleted.

    View source on GitHub