models:teardown
rai models:teardown [OPTIONS]Drop the current model or branch and all its managed data.
Removes the model’s managed objects for the active backend (Snowflake
oplog: the schema + _META + oplog; JSONL: the local oplog store).
Targets the current model (deployment.schema, set via
rai models switch). Leaves raiconfig.yaml untouched: afterwards
deployment.schema still names the dropped model, so teardown prints a
note that the pointer is now stale and how to re-point it
(rai models switch <name>) before using it again.
Options
| Option | Type | Description |
|---|---|---|
--force | Boolean | Actually perform the teardown. Without it, the command only prints what would be dropped. Default: False. |
--allow-unmerged | Boolean | Tear down even if the branch has unmerged changes (discards them). Default: False. |
--allow-children | Boolean | Tear down even if downstream branches exist (orphans them). Default: False. |