models:teardown
rai models:teardown [OPTIONS]Drop the current model or branch and all its managed data.
For Snowflake, removes only the selected model’s directly tagged RAI
objects under --force. Schemas, shared tags, and other models stay.
For JSONL, deletes the local oplog store.
Targets the current model (deployment.schema and its prefix or suffix, 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 | Remove the selected model’s RAI-owned objects and local replay state. Schemas are kept. Without this flag, only a preview is printed. Default: False. |
--allow-unmerged | Boolean | Tear down even if the branch has unmerged changes (discards them). Default: False. |
--allow-children | Boolean | Tear down downstream branches too, then the target (cascade). ALL children go, merged or not — a merged branch is still a readable record of what was merged, and this destroys it. Children with unmerged changes additionally require —allow-unmerged. Every child is named in the confirmation panel. Default: False. |