drop_model
Use the drop model operation to remove a loaded model from the database.
Drops the specified embedding or reranking model. Models currently in use by vector tables cannot be dropped and will throw an error.
Parameters
| Parameter | Type | Value Range | Required | Default | Description | Notes |
|---|---|---|---|---|---|---|
model_name |
str |
Valid model identifier | Yes | No default | Name of the model to drop. | Model must exist and must not be referenced by an integrated embedding vector table. |
Raises Exception – InvalidModelNameFormatError may be raised when the model name is invalid. The operation can also fail if the model does not exist or is still associated with a vector table.
Drop a model
response = client.drop_model(model_name="SAMPLE_MODEL")
Return type DropModelResponse
Returns JSON response confirming model deletion. Example response:
{
"dropped": "SAMPLE_MODEL",
"message": "Model SAMPLE_MODEL dropped successfully"
}