| title | DROP EXTERNAL MODEL (Transact-SQL) | |||
|---|---|---|---|---|
| description | DROP EXTERNAL MODEL (Transact-SQL) for dropping an external model object that contains the location, authentication method, and purpose of an AI model inference endpoint. | |||
| author | jettermctedder | |||
| ms.author | bspendolini | |||
| ms.reviewer | randolphwest | |||
| ms.date | 10/14/2025 | |||
| ms.service | sql | |||
| ms.subservice | t-sql | |||
| ms.topic | reference | |||
| ms.custom |
|
|||
| f1_keywords |
|
|||
| helpviewer_keywords |
|
|||
| dev_langs |
|
|||
| monikerRange | =azuresqldb-current || >=sql-server-ver17 || >=sql-server-linux-ver17 || =fabric-sqldb |
[!INCLUDE sqlserver2025-asdb-fabricsqldb]
Drops an external model object.
DROP EXTERNAL MODEL external_model_object_name
[ ; ]
Specifies the user-defined name for the external model. The name must be unique within the database.
Dropping an external model doesn't drop any credentials that the model was using for AI model inference endpoint authentication.
This example drops the model named myAImodel.
DROP EXTERNAL MODEL myAImodel;