The main difference between clearing a stream and refreshing a stream in Airbyte is how they handle the data in your destination and the sync process:
Clearing a Stream: - Permanently deletes all previously synced data for the selected stream from your destination. - The destination tables are emptied (but not removed); if using file-based destinations, the files are deleted. - Causes data downtime: your destination tables will be empty until you perform a new sync. - Blocks regularly scheduled syncs until the clear operation is complete. - After clearing, you must run a sync to reload data for that stream. - There is no way to recover the cleared data unless your source retains all historical records. - Typically used when you want to erase all Airbyte-managed data for a stream or after making certain configuration changes to ensure data consistency. - Can be triggered from the UI (via the three dots next to a stream) or the API [Clearing your data](
https://docs.airbyte.com/platform/next/operator-guides/clear).
Refreshing a Stream: - Erases the current cursor for incremental streams, effectively "rewinding" the sync to the beginning. - Does not cause data downtime: existing data remains available until the refresh completes, at which point the refreshed data is swapped or merged in. - Re-imports all records from the source for the refreshed stream (if they are still present in the source). - Useful for retrying failed syncs, mirroring deletions from the source, or recovering from unreliable sources. - Depending on the sync mode, you can choose to either remove records (only keep newly synced data) or retain records (merge new data with existing data). - Can be triggered from the UI or API at the stream or connection level [Refreshing your data](
https://docs.airbyte.com/platform/next/operator-guides/refreshes).
Summary Table: | Action | Data in Destination | Data Downtime | Use Case | |-------------|--------------------|--------------|-----------------------------------------------| | Clear | Emptied/Deleted | Yes | Erase all data, start fresh, config changes | | Refresh | Re-synced/Merged | No | Retry sync, mirror deletions, fix issues | For both actions, if your source does not retain all historical records, you may lose data that cannot be re-synced. References: [Clearing your data](
https://docs.airbyte.com/platform/next/operator-guides/clear) [Refreshing your data](
https://docs.airbyte.com/platform/next/operator-guides/refreshes)