Fabrizio Spini
09/03/2025, 1:35 PMDELETE FROM "attempt" WHERE "ended_at" < NOW() - INTERVAL '180 days'; ?kapa.ai
09/03/2025, 1:36 PMsql DELETE FROM "attempt" WHERE "ended_at" < NOW() - INTERVAL '180 days'; There are community discussions and feature requests about purging old syncs and cleaning up large jobs and attempts tables, and it is acknowledged that there is currently no built-in cleanup routine for these tables in Airbyte. One maintainer specifically mentioned: > I couldn't find any clean routines for attempts and jobs in the platform code, which could be a useful feature to prevent full disk issues. > Reference: [Documentation Page](https://docs.airbyte.com/operator-guides/configuring-airbyte#data-retention) [Purging of old syncs from Airbyte databases](https://github.com/airbytehq/airbyte/discussions/55233) This suggests that while manual deletion is technically possible, it is not officially documented or supported, and there may be unknown side effects. The jobs and attempts tables are linked (attempts reference jobs via a foreign key), and deleting attempts without considering related jobs or other dependencies could potentially cause issues with Airbyte's internal state or UI. Summary: There is no official confirmation that running such a DELETE statement is safe. Proceed with caution, and consider backing up your database before making manual changes. If possible, wait for or request an officially supported cleanup feature from Airbyte. For reference, the only officially supported retention configuration is for Temporal history (not for Airbyte's own jobs/attempts tables) via the TEMPORAL_HISTORY_RETENTION_IN_DAYS environment variable, which does not affect the Airbyte Postgres tables in question [Configuring Airbyte: Data Retention](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#data-retention).Fabrizio Spini
09/03/2025, 1:45 PMkapa.ai
09/03/2025, 1:45 PMkapa.ai
09/03/2025, 1:45 PMFabrizio Spini
09/04/2025, 2:27 PMkapa.ai
09/04/2025, 2:27 PMkapa.ai
09/04/2025, 2:27 PM