- Extend the retention window to keep data longer for an additional storage charge (Pro and Enterprise).
- Automate data deletion to keep less data on specific projects and object types (Enterprise).
- Delete data manually to remove specific data on demand (any plan).
Retention automations only shorten retention. Setting an automation period longer than your plan-level window doesn’t keep data longer. To retain data beyond your plan’s base window, extend your retention window as described below.
Extend the retention window
Pro and Enterprise plans can extend the base retention window to keep logs and playground data, including each row’s activity history, queryable for longer, for an additional storage charge.- Starter: 14-day retention window. Not extendable.
- Pro: 30-day retention window. Extend up to 180-day retention in Settings > Billing, in 30-day increments.
- Enterprise: Custom retention window, up to 365-day retention, configured with your account team.
Automate data deletion
only available on the Enterprise plan.
- Go to Settings > Data management.
- Click + Create automation.
- Select Data retention type.
- Configure settings:
- Object type: Logs, Experiments, or Datasets.
- Retention period: Days to keep data before deletion.
- Click Save.
What gets deleted
- Logs: Individual logs older than the retention period are deleted.
- Experiments: The entire experiment (metadata and all rows) is deleted once its creation timestamp passes the retention period.
- Datasets: Individual dataset rows older than the retention period are deleted. The dataset itself remains and can accept new rows.
Example policies
| Scenario | Retention period | Rationale |
|---|---|---|
| Production logs | 90-day retention | Keep recent logs for debugging, delete older data you no longer need. |
| Development logs | 7-day retention | Keep short-term history for active development, clean up test data quickly. |
| Experiments | 180-day retention | Retain completed evaluations for half a year, then archive or delete. |
| Compliance | 30-day retention | Automatically delete user data after the 30-day retention period to meet regulatory requirements. |
Delete data manually
To remove specific data before it ages out of your retention window, delete it directly. Manual deletion is available on all plans.- Traces and logs: Select traces in the log table and delete them. See Delete traces.
- Dataset records: Select records in a dataset and delete them, or delete them programmatically. See Delete records.
- Experiment rows: Select rows in an experiment table and delete them, or delete them through the API.
Self-hosted deployments
Soft deletion
For self-hosted deployments (data plane v1.1.21+), data is soft-deleted by marking it unused. A background process purges unused files within 24 hours, providing a grace period to restore accidentally deleted data.Configure a service token for your data plane to enable retention. See Data plane manager for details.
Cloud provider policies
For self-hosted deployments, review your cloud provider’s bucket retention policies at the project and organization level before configuring retention in Braintrust. Org-wide policies are common and can conflict with Braintrust retention settings or delete data independently of Braintrust. All Braintrust deletes are recorded in a delete log. If data goes missing, contact Braintrust support and Braintrust will audit these logs to determine whether the deletion was caused by a Braintrust retention policy or another process. Braintrust recommends enabling audit logging on your storage bucket to help trace the root cause of unexpected deletes.Next steps
- Export to cloud storage for long-term archival
- Set up alerts to monitor data quality
- Self-hosting advanced for data plane configuration