<@U04S8PLJWMT> I have a connection with all stream...
# ask-ai
k
@kapa.ai I have a connection with all streams defined in Incremental and I want to reset the state in order to force a full refresh, how can I do it ?
k
To reset the state and force a full refresh for a connection where all streams are defined as Incremental, you should use the "Clear" functionality in Airbyte. This will remove the current state and all previously synced data from your destination, causing the next sync to start from scratch (i.e., a full refresh). Here’s how you can do it: 1. Navigate to your connection: - In the Airbyte UI, go to the Connections page and select the connection you want to reset. 2. Clear all data: - Go to the connection's Settings tab. - Click on Clear data. - Confirm the selection to remove all previously synced data from the destination for that connection. > This will delete all records from your destination tables (the tables themselves are not removed, just emptied). After clearing, the next sync will reload all data from the source, as the state is reset and Airbyte will treat it as a first-time sync. 3. Alternatively, clear a single stream: - On the Connection's status page, click the three dots next to any stream and select Clear data to reset just that stream. Important notes: - There is no way to recover data after a clear sync, so be certain before proceeding. - Not all sources retain all historical data. If your source does not keep its full history, clearing and re-syncing may lead to data loss. - Clearing your data blocks regular syncs until the clear operation is complete. If another sync is running, the clear will be queued and start after the current sync finishes. For more details, see the official documentation on clearing data: [Clearing your data](https://docs.airbyte.com/platform/operator-guides/clear)
k
@kapa.ai the state has not been cleared
k
A message from kapa.ai
If you have performed a "Clear" (or "Reset" in older versions) in Airbyte but the state has not been cleared, this is not the expected behavior. According to the documentation, a successful Clear should remove all records from your destination and reset the state, so that the next sync starts from scratch and re-imports all data from the source, even for incremental streams [Clearing your data](https://docs.airbyte.com/platform/operator-guides/clear). However, there are known issues and edge cases where the state may not be cleared as expected: - Connector Version Issues: Some older destination connectors (such as S3 < v1.x) did not fully support the new Clear behavior, which could result in the state not being reset or files not being deleted. Upgrading to the latest connector version is recommended ["Clear data" of one specific stream in Airbyte 1.2.0 does not work for parquet files in S3](https://github.com/airbytehq/airbyte/issues/57555). - Platform Version Bugs: There have been bugs in older Airbyte platform versions where state was not reset correctly between full refresh runs. Upgrading to a version >= 0.58.0 is advised [[source-slack] Full refresh sync prevents data extraction on subsequent runs due to __ab_full_refresh_sync_complete state flag](https://github.com/airbytehq/airbyte/issues/42888). - Manual State Reset: In some cases, especially with older versions or certain destinations, you may need to manually clear state or drop tables/files in the destination if the automated Clear does not work as intended [Clearing your data](https://docs.airbyte.com/platform/operator-guides/clear). What you should do: 1. Check your Airbyte and connector versions. If you are running an older version, upgrade both the Airbyte platform and your destination connector to the latest available. 2. If the problem persists after upgrading, you may need to manually clear the state or destination data, as described in the documentation. 3. If you are still experiencing issues, consult the logs for errors and consider opening a support ticket or GitHub issue with detailed information about your setup and the problem. In summary, a successful Clear should reset the state, but if it does not, it is likely due to a version issue or a bug. Upgrading is the recommended first step. If you need more specific troubleshooting, please provide your Airbyte and connector versions and any relevant logs.