Unsave Model
unsave_modelFree up a saved-model slot without deleting the model. Unsave a model to revert it to an unsaved state while keeping it accessible by hash, ideal for managing the 20-saved-models cap.
Instructions
Release a model's saved slot without deleting anything — the inverse of save_model (#673).
Use this for cap management: at the 20-saved-models cap, unsave a model that no longer earns its shelf spot instead of deleting it. The model reverts to the state API-created models start in (unsaved, no project; the name is kept) — it leaves the default listing and the dashboard's Saved Models but stays fully addressable by hash: fetchable, renameable, exportable, re-saveable, and visible via list_models with include_unsaved=true. Idempotent — unsaving an unsaved model is a success with freed_project_id null. delete_model remains failed-only.
Two caveats: the UNSAVED pool is auto-pruned by dashboard model creation (at 10+ unsaved models the oldest is hard-deleted, artifacts included), so re-save anything worth keeping rather than parking it unsaved long-term; and unsaving a shared model hides it from every recipient until it is saved again.
Args: model_hash: Hash of the model whose slot to release.
Returns: {model_hash, is_saved: false, freed_project_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_hash | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||