<@U04S8PLJWMT> does `Refresh stream and remove rec...
# ask-ai
m
@kapa.ai does
Refresh stream and remove records
truncate records or drop the table
k
The
Refresh stream and remove records
operation in Airbyte does not drop the table; instead, it removes (deletes) all records from the destination’s final tables. The tables themselves remain in place and are simply emptied of their data. This is confirmed in the documentation, which states: > When clearing data is successfully completed, all the records are deleted from your destination tables... The tables are not removed, they will only be emptied. [Clearing your data](https://docs.airbyte.com/platform/operator-guides/clear) Similarly, for a refresh that removes records, only the data is deleted, not the table itself: >
Refresh and Remove Records Syncs
will only display data in the destination’s final tables that was newly synced since the refresh was initiated. [Refreshes](https://docs.airbyte.com/platform/operator-guides/refreshes) So, to summarize:
Refresh stream and remove records
truncates (empties) the records in the table, but does not drop the table itself.
m
@kapa.ai can the step size and cursor_granularity be the same?
k
A message from kapa.ai
Yes, the step size and cursor_granularity can be the same in Airbyte's incremental sync configuration. Both are expressed as ISO 8601 durations. The step size defines the length of each time window (interval) for partitioning the sync, while the cursor_granularity represents the smallest possible time unit the API supports for filtering records. Setting them to the same value means each interval will be as granular as the cursor allows, which is valid and may be appropriate depending on your data volume and API capabilities. For example, if both are set to one day (
P1D
), each sync interval will cover exactly one day, and the cursor will also advance in one-day increments. This is supported by the documentation, which describes both parameters and provides examples where their values could match, such as both being set to one second (
PT1S
) or one day (
P1D
) depending on your needs [Incremental Syncs - DatetimeBasedCursor](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/incremental-syncs#datetimebasedcursor) [Advanced settings](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/incremental-sync#advanced-settings). Just ensure that the chosen values make sense for your API and data volume.