Edit

Share via


DROP EXTERNAL MODEL (Transact-SQL)

Applies to: SQL Server 2025 (17.x) Azure SQL Database SQL database in Microsoft Fabric

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 myAImodel.

DROP EXTERNAL MODEL myAImodel;