This message was deleted.
# ask-ai
s
This message was deleted.
k
If an Airbyte sync fails after partially loading data, Airbyte does not automatically roll back or clean up the data that was already written to the destination during the failed attempt. This means that some records may remain in your destination, potentially leading to duplicates if the sync is retried and the same data is loaded again. Specifically: - In incremental syncs, Airbyte uses a cursor and state to resume from the last checkpoint, but if a failure occurs after some data has been written, that data is not automatically removed. The more frequently the state is checkpointed, the less duplication you may see, but some duplicates can still occur if a failure happens after a checkpoint but before the sync completes. Using normalization with "Incremental Dedupe" mode can help remove duplicates in the destination, or you can use a more fine-grained cursor to increase checkpoint frequency [Failed attempts leading to duplicates](https://discuss.airbyte.io/t/744). - In full refresh append mode, Airbyte will append data to your destination, and if a sync fails and is retried, you may end up with duplicate records. There is currently no built-in mechanism to automatically delete or roll back data inserted during a failed sync in this mode [Airbyte committing records for failed sync](https://discuss.airbyte.io/t/1064). - Temporary tables (e.g.,
_airbyte_tmp_*
) may be left behind after failed syncs and are not automatically cleaned up until a successful sync occurs [Source S3 - Failed attempts using up data space](https://discuss.airbyte.io/t/2067). In summary, Airbyte does not roll back partial data loads on sync failure. You may need to handle deduplication or cleanup in your destination, depending on your sync mode and requirements. This is a known limitation, and improvements are being worked on by the Airbyte team.