LangChain Support
Back to LangSmith Observability

Can I configure data retention periods for traces on LangSmith Cloud (SaaS)?

LangSmith Observability·1 min read·Oct 24, 2025··

Context

Customers may need to configure specific data retention periods for their traces on LangSmith Cloud to comply with their organization's data retention policies. By default, trace data is stored for either 14 days or 400 days depending on the plan.

Answer

Currently, data retention periods are not configurable within the platform. The system offers two fixed retention periods:

  • 14 days retention

  • 400 days retention

While direct configuration of retention periods is not available, there are two workaround options for customers who need custom retention periods:

  1. Use the programmatic deletion API to remove traces after your desired retention period

  2. Set up an automated job to handle trace deletion according to your retention requirements

Note: The ability to configure custom retention periods is expected to be developed in the future as part of platform improvements to the data layer.