Skip to content

models:teardown

Terminal window
rai models:teardown [OPTIONS]

Drop a model or branch and all its data.

When the target is the current model, resets deployment.schema to its parent (or clears it if the model had no parent).

Options

OptionTypeDescription
--nametextModel/branch to tear down. Defaults to the configured deployment.schema.
--forceBooleanActually perform the teardown. Without it, the command only prints what would be dropped. Default: False.
--allow-unmergedBooleanTear down even if the branch has unmerged changes (discards them). Default: False.
--allow-childrenBooleanTear down even if downstream branches exist (orphans them). Default: False.

See Also