Deletes an AI model.
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 deletion was successful. |
f | The deletion failed. |
Description
When you delete an AI model, the corresponding record of the model is also deleted from the polar_ai._ai_models table.
You cannot delete built-in models whose names start with an underscore (_), such as _dashscope/text_embedding/text_embedding_v2.
Example
SELECT polar_ai.AI_DropModel('my_text_embedding_model');