Deletes an AI model from PolarDB.
Syntax
boolean AI_DropModel(text model_id);Parameters
| Parameter | Description |
|---|---|
model_id | The unique name of the existing model that you want to delete. |
Return values
| Return value | Description |
|---|---|
t | The model was deleted successfully. |
f | The deletion failed. |
Usage notes
Deleting a model also removes its record from the
polar_ai._ai_modelstable.Built-in models whose names start with an underscore (
_) cannot be deleted. For example,_dashscope/text_embedding/text_embedding_v2is a protected built-in model.
Example
SELECT polar_ai.AI_DropModel('my_text_embedding_model');