Data UI Backlog

Undeploy Model button (Model Bank)

An "Undeploy Model" button in Model Bank, peer of Deploy. A model deployed from Model Bank has no models/<name>.lisp — the :deploy-model hook writes it to gitignored models/local/<name>.lisp — so scripts/data-ui delete <name> (identity from the model file, default models/<name>.lisp) dies with FILE-DOES-NOT-EXIST on exactly the apps the button creates.

MODEL_FILE=models/local/<name>.lisp; delete must find the app even when the local model file is gone (fall back to live cluster identity: dataui-<name> namespace)

2026-10-01): undeploy in scripts/data-ui auto-falls-back to models/local/<name>.lisp when models/<name>.lisp is missing and MODEL_FILE is unset (the block marked INTERIM at the top of the local branch). Delete it when the hook's explicit MODEL_FILE pass-through + cluster-identity fallback replace it.

(the k8s namespace, PVs, DB, uploaded files, HAProxy backend/map line, and deploy state are all destroyed)

models/local/ on its own (the interim fix above); any delete step tolerates already-deleted resources; re-run is safe

Related: "Undeploy button" stub in Post MVP (same need, that scope); "Role-gated Deploy button" (the role machinery to reuse).

Slot
10200
Status
10 Open
Tags
backend, frontend, model, scripts
Contributors
Donnie