Removes an AI model from the registry. The provider endpoint, the connection, and the vault credential are untouched.
DROP MODEL [IF EXISTS] <name>
## Overview DROP MODEL deletes the registry row. It deliberately cascades nothing: the REST connection and its vault credential may back other models or API endpoints, so they are left in place. Queries that reference the dropped model through AI_GENERATE / AI_GENERATE_EMBEDDINGS fail at their next model resolution with a clear 'not found' error naming SHOW MODELS.
| Name | Type | Description |
|---|---|---|
name | The registry name of the model to drop, matched case-insensitively. | |
IF EXISTS | Turns a missing model into a no-op success instead of an error. |
DROP MODEL gpt5;
-- Idempotent cleanup
DROP MODEL IF EXISTS gpt5;