<@U04SE163WC8> i get "refreshes are not available ...
# ask-ai
k
@kapa.ai i get "refreshes are not available for your destination" for my destination built using the python cdk
u
The "refreshes are not available for your destination" message indicates that the destination connector you're using does not support the refreshes feature. Refreshes are a feature in Airbyte that allow you to update your data in your destination without having to re-sync all your data. According to the [knowledge source](https://docs.airbyte.com/operator-guides/refreshes#overview), there are two types of refreshes - "retaining history" and "removing history". Both kinds of Refresh Syncs can be triggered from the UI and via the Airbyte API at either the stream or connection levels. However, both might not be available depending on your sync mode. If you're developing your own connector using the Python CDK, you might need to implement support for refreshes in your connector. Currently, the Python CDK does not support substreams for resumable full refresh, but this work is in progress according to the [knowledge source](https://docs.airbyte.com/connector-development/cdk-python/resumable-full-refresh-stream#criteria-for-resumable-full-refresh). If you're using an existing connector, it's possible that the connector does not yet support refreshes. In this case, you might need to wait for an update to the connector that adds support for refreshes. For example, in a [Github issue](https://github.com/airbytehq/airbyte/issues/41991), it was mentioned that a new version of the destination-postgres connector that supports refreshes is coming soon. If you're facing issues with a specific connector, I would recommend checking the Github issues for that connector or opening a new issue if one does not exist.
k
@kapa.ai give me code examples of how to implement this feature
u
A message from kapa.ai
u
I'm sorry, but the provided knowledge sources do not contain specific code examples on how to implement the refreshes feature in a custom connector using the Python CDK. However, you can refer to the [Airbyte documentation](https://docs.airbyte.com/connector-development/cdk-python/resumable-full-refresh-stream#criteria-for-resumable-full-refresh) for general guidelines on implementing resumable full refresh streams, which is a part of the refreshes feature. For more detailed guidance or code examples, you might want to check the source code of existing connectors that support the refreshes feature. You can find these in the [Airbyte Github repository](https://github.com/airbytehq/airbyte). If you need further assistance, consider asking your question in the [Airbyte community](https://discuss.airbyte.io/) or opening a new issue on Github.