How to Prune Old Messages and Blobs with PostgresSaver to Manage Database Size? Hi team, I have a question regarding the intended usage of PostgresSaver in LangGraph, specifically around managing the size of the checkpointing database when implementing st

I’m looking for a reliable method to permanently prune older parts of the state from my PostgreSQL database. This seems like a common requirement for long-running, stateful applications, and I would appreciate any official guidance or recommendations.

Hey @pwli0755 ! Is this a langgraph platform deployment?
For existing memory, you would likely have to do that manually.
For future deployments, you could look into setting up default TLL to your checkpoints! How to add TTLs to your LangGraph application - Docs by LangChain