engines:delete#
#rai engines:delete [OPTIONS]
Deletes a RelationalAI (RAI) engine.
The CDC engine can only be deleted with the --force
flag.
Requires the eng_admin
application role.
Options#
Option | Type | Description |
---|---|---|
--name | Text | The name of the engine to delete. If missing, you are prompted to enter the name interactively. |
--force | Flag | If set, forces the deletion of the engine. Required to delete the CDC Engine. |
Example#
Use the engines:delete
command to delete a RAI engine:
#$ rai engines:delete --name my_engine
---------------------------------------------------
▰▰▰▰ Engine 'my_engine' deleted!
---------------------------------------------------
If no engine named my_engine
exists, an error message is displayed:
#$ rai engines:delete --name my_engine
---------------------------------------------------
Engine 'my_engine' not found
---------------------------------------------------
If the --name
option is missing, you are prompted to select the engine name interactively:
#$ rai engines:delete
---------------------------------------------------
▰▰▰▰ Fetched engines
? Select an engine:
┌──────────────────────────────────────────────────┐
│❯ 3/3 │
│❯ [REFETCH LIST] │
│ my_engine │
│ my_other_engine │
└──────────────────────────────────────────────────┘
▰▰▰▰ Engine 'my_engine' deleted!
---------------------------------------------------
Use the up and down arrow keys to navigate the list of engines. You can search for an engine by typing part of its name in the prompt.
The app’s CDC engine cannot be deleted without the --force
flag:
#$ rai engines:delete --name CDC_MANAGED_ENGINE --force
---------------------------------------------------
▰▰▰▰ Engine 'CDC_MANAGED_ENGINE' deleted!
---------------------------------------------------
If CDC is enabled, the CDC engine is automatically recreated whenever changes to data streams are detected. To permanently delete the CDC engine, you must disable CDC.
See Compute Resources for more information on RAI engines and engine management.