relationalai.api.delete_data_stream()
delete_data_stream(object_fq_name STRING)
Deletes a data stream from the specified RAI Python model.
Models retain access to a snapshot of the most recent data processed by the stream.
Requires the cdc_admin
application role.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
object_fq_name | STRING | The fully-qualified name of the data stream’s source table or view in Snowflake, e.g. '<db>.<schema>.<table_or_view>' . |
Returns
Section titled “Returns”STRING
Example
Section titled “Example”Use api.delete_data_stream()
to delete a data stream from a model:
-- Delete a data stream. Replace the placeholders with your database, schema-- and table or view name.CALL relationalai.api.delete_data_stream('<db>.<schema>.<table_or_view>');/*+-----------------------------------+ | Data stream deleted successfully. | +-----------------------------------+ */
See Data Management for more information data streams.