Jhonatas Kleinkauff
09/29/2025, 3:23 PMkapa.ai
09/29/2025, 3:24 PMJhonatas Kleinkauff
09/29/2025, 4:13 PMkapa.ai
09/29/2025, 4:13 PMkapa.ai
09/29/2025, 4:13 PMJhonatas Kleinkauff
09/29/2025, 4:18 PMkapa.ai
09/29/2025, 4:18 PMkapa.ai
09/29/2025, 4:18 PMTEMPORAL_HISTORY_RETENTION_IN_DAYS can be set to control how long Temporal keeps history, but there are reports that this does not always work as expected, and some users still see large tables even after setting it [Auto delete job history logs after specific period](https://github.com/airbytehq/airbyte/issues/39358), [Quickly run out of storage](https://discuss.airbyte.io/t/2417), [Purging of old syncs from Airbyte databases](https://github.com/airbytehq/airbyte/discussions/55233). - There is no built-in Airbyte feature (as of now) to automatically prune the jobs or attempts tables in the Airbyte or Temporal databases. Users have requested this feature, and it is under discussion [Improve Temporal History Retention and Cleanup for Large-Scale Deployments](https://github.com/airbytehq/airbyte/discussions/62951), [Remove jobs (and attempts) older than X days](https://github.com/airbytehq/airbyte/issues/21137). - Some users have manually deleted rows from the database tables (such as attempts and jobs) to reduce size and improve performance, but there is no official, safe procedure published by Airbyte. Manual deletion should be done with caution and only if you are comfortable with SQL and understand the database schema, as it may have side effects. Summary: - There is no official guide or page from Airbyte on how to safely prune the Temporal tables. - You can try setting the TEMPORAL_HISTORY_RETENTION_IN_DAYS environment variable, but results may vary. - Manual pruning is possible but not officially documented or supported—proceed with caution and consider backing up your database first. If you need to proceed, you may want to consult with your database administrator or reach out to Airbyte support for more tailored guidance. If you are on Airbyte Cloud, you should contact Airbyte Support directly for assistance. If you would like to follow community discussions or request this feature, you can monitor or contribute to these threads: - [Purging of old syncs from Airbyte databases](https://github.com/airbytehq/airbyte/discussions/55233) - [Improve Temporal History Retention and Cleanup for Large-Scale Deployments](https://github.com/airbytehq/airbyte/discussions/62951) - [Auto delete job history logs after specific period](https://github.com/airbytehq/airbyte/issues/39358) I'm sorry I can't provide a step-by-step SQL script or official guide, as it is not available in the current knowledge sources.Jhonatas Kleinkauff
09/29/2025, 4:21 PMkapa.ai
09/29/2025, 4:21 PMkapa.ai
09/29/2025, 4:21 PMattempts, jobs, and Temporal's history tables to reduce database size and improve performance, there is no documented, safe procedure or example query provided by Airbyte in the available documentation or community threads. The only guidance mentioned is to set the TEMPORAL_HISTORY_RETENTION_IN_DAYS environment variable to control retention, but users have reported inconsistent results with this approach, and no direct SQL examples are given [Purging of old syncs from Airbyte databases](https://github.com/airbytehq/airbyte/discussions/55233), [Auto delete job history logs after specific period](https://github.com/airbytehq/airbyte/issues/39358), [Improve Temporal History Retention and Cleanup for Large-Scale Deployments](https://github.com/airbytehq/airbyte/discussions/62951). Summary: There is no official or example SQL query for pruning Airbyte or Temporal tables in the knowledge sources. Manual deletion is possible but not documented or officially supported—proceed with caution and consider backing up your database first.Jhonatas Kleinkauff
09/29/2025, 4:42 PMkapa.ai
09/29/2025, 4:42 PMkapa.ai
09/29/2025, 4:42 PMJhonatas Kleinkauff
09/29/2025, 4:43 PMkapa.ai
09/29/2025, 4:43 PMkapa.ai
09/29/2025, 4:44 PMattempts table. While there are community discussions and feature requests about the need for automated cleanup and the impact of large attempts tables on performance, there is no explicit guidance or guarantee from Airbyte about the consequences of manual deletion [Improve Temporal History Retention and Cleanup for Large-Scale Deployments](https://github.com/airbytehq/airbyte/discussions/62951) [Purging of old syncs from Airbyte databases](https://github.com/airbytehq/airbyte/discussions/55233). Therefore, based on the available information, it is unclear whether it is completely safe to prune old records from the attempts table, and doing so may have unintended side effects. If you decide to proceed, it is strongly recommended to back up your database first and test thoroughly in a non-production environment.Jhonatas Kleinkauff
09/29/2025, 5:58 PMkapa.ai
09/29/2025, 5:58 PMkapa.ai
09/29/2025, 5:58 PM