relationalai.api.delete_data_stream()
delete_data_stream(object_fq_name STRING, model_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>' . |
model_name | STRING | The name of the model associated with the stream. |
Returns
Section titled “Returns”STRING
Example
Section titled “Example”Use api.delete_data_stream()
to delete a data stream from a model:
-- Delete the data stream from the model 'MyModel'. Replace the placeholders with-- your database, schema, and table or view name.CALL relationalai.api.delete_data_stream('<db>.<schema>.<table_or_view>', 'MyModel');/*+-----------------------------------+ | Data stream deleted successfully. | +-----------------------------------+ */
See Data Management for more information data streams.