LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpointbaseBaseCheckpointSaverdelete_for_runs
    Method●Since v4.0

    delete_for_runs

    Copy
    delete_for_runs(
        self,
        run_ids: Sequence[str],
    ) -> None
    View source on GitHub

    Parameters

    NameTypeDescription
    run_ids*Sequence[str]

    The run IDs whose checkpoints should be deleted.

    Delete all checkpoints and writes associated with the given run IDs.

    Deleting a run that produced ancestor checkpoint_writes — or the only _DeltaSnapshot blob — for a still-live thread will break reconstruction of any DeltaChannel whose history depended on those rows. See the DeltaChannel note on prune for safe-recovery strategies.