Gary K
10/10/2025, 5:54 AMkapa.ai
10/10/2025, 5:54 AMTEMPORAL_HISTORY_RETENTION_IN_DAYS environment variable to a lower value. This will reduce the retention period for Temporal history and help clean up old logs and tables. The default is 30 days, but you can lower it as needed. This is currently the main automated cleanup option for large Temporal tables like history_node and executions [see discussion](https://github.com/airbytehq/airbyte/discussions/55233). ### 2. Airbyte Platform Database (Jobs, Attempts, Workload) For tables such as attempts, jobs, and workload in the main Airbyte database, there is currently no built-in automated cleanup routine. Users have reported that these tables can grow significantly over time, especially in large-scale or long-running deployments. Manual intervention (such as deleting old rows) is possible, but you should be cautious and understand the implications for your Airbyte instance. There is an open feature request to add automated retention and cleanup for these tables [see feature request](https://github.com/airbytehq/airbyte/discussions/62951). ### 3. General Recommendations - Monitor Table Sizes: Regularly check which tables are growing the most. - Manual Pruning: If you choose to manually delete rows from large tables (like attempts or jobs), ensure you understand the relationships and potential impact on Airbyte's operation. - Increase Storage: As a last resort, consider increasing your persistent volume size if cleanup is not immediately possible. ### Summary - Set TEMPORAL_HISTORY_RETENTION_IN_DAYS to reduce Temporal DB size. - There is currently no automated cleanup for Airbyte's attempts and jobs tables; manual cleanup may be required. - Automated cleanup for these tables is a requested feature but not yet available. References: - [Purging of old syncs from Airbyte databases](https://github.com/airbytehq/airbyte/discussions/55233) - [Feature Request: Improve Temporal History Retention and Cleanup](https://github.com/airbytehq/airbyte/discussions/62951) If you need to proceed with manual cleanup, make sure to back up your database and test the impact in a non-production environment first.