DROP EXTERNAL MODEL (Transact-SQL)

Applies to: SQL Server 2025 (17.x) Preview

Drops an external model object.

Syntax

DROP EXTERNAL MODEL external_model_object_name
[ ; ]

Arguments

external_model_object_name

Specifies the user-defined name for the external model. The name must be unique within the database.

Remarks

Dropping an external model doesn't drop any credentials that the model was using for AI model inference endpoint authentication.

Examples

Drop EXTERNAL MODEL

This example drops the model named dbo.myAImodel.

DROP EXTERNAL MODEL dbo.myAImodel;