imports:delete#

#rai imports:delete [OPTIONS]

Deletes a data stream from a RelationalAI (RAI) Python model. Models retain access to a snapshot of the most recent data processed by the stream. Requires the cdc_admin application role.

Options#

OptionTypeDescription
--objectTextThe fully-qualified name of the data stream’s source Snowflake table or view, e.g. <db>.<schema>.<table_or_view>. If missing, you are prompted to select the object interactively.
--modelTextThe name of the model to delete the data stream from. If missing, you are prompted to select the model interactively.

Example#

Use the imports:delete command to delete a data stream from a RAI Python model:

#$ rai imports:delete --model myModel --object my_import

---------------------------------------------------

▰▰▰▰ Imports fetched
▰▰▰▰ my_import removed

---------------------------------------------------

If you do not provide the --object or --model options, you are prompted to select the object and model interactively:

#$ rai imports:delete

▰▰▰▰ Models fetched

? Select a model:
┌──────────────────────────────────────────────────────────────────────────────────────────┐
│❯   2/2                                                                                   │
│❯ myModel                                                                                 │
│  myModel2                                                                                │
└──────────────────────────────────────────────────────────────────────────────────────────┘

▰▰▰▰ Imports fetched

? Select objects (tab for multiple):
┌──────────────────────────────────────────────────────────────────────────────────────────┐
│❯   3/3 (0)                                                                               │
│❯ SNOWFLAKE_DB.SCHEMA.TABLE1                                                              │
│  SNOWFLAKE_DB.SCHEMA.TABLE2                                                              │
│  SNOWFLAKE_DB.SCHEMA.TABLE3                                                              │
└──────────────────────────────────────────────────────────────────────────────────────────┘

▰▰▰▰ SNOWFLAKE_DB.SCHEMA.TABLE1 removed

---------------------------------------------------

Use the up and down arrow keys to navigate the list of models and imports. You can search for a model or import by typing part of its name in the prompt. Use the TAB key to select multiple imports if you need to delete more than one import from the same model.

See Data Management for more information on data streams.

See Also#