AI_DropModel

更新时间:
复制 MD 格式

Deletes an AI model from PolarDB.

Syntax

boolean AI_DropModel(text model_id);

Parameters

ParameterDescription
model_idThe unique name of the existing model that you want to delete.

Return values

Return valueDescription
tThe model was deleted successfully.
fThe deletion failed.

Usage notes

  • Deleting a model also removes its record from the polar_ai._ai_models table.

  • Built-in models whose names start with an underscore (_) cannot be deleted. For example, _dashscope/text_embedding/text_embedding_v2 is a protected built-in model.

Example

SELECT polar_ai.AI_DropModel('my_text_embedding_model');