ALTER MODEL … DROP VERSION

Removes a version from the specified machine learning model.

See also:

ALTER MODEL … ADD VERSION, ALTER MODEL … MODIFY VERSION

Syntax

ALTER MODEL [ IF EXISTS ] <name> DROP VERSION <version_name>
Copy

Parameters

name

Specifies the identifier of the model. If the identifier contains spaces, special characters, or mixed-case characters, the entire identifier must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. For information on identifier syntax, see Identifier requirements.

If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

For more information, see Identifier requirements.

version_name

Specifies the identifier of the version to be removed.

If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

For more information, see Identifier requirements.

Usage Notes

You cannot drop the default version of a model. Change the default to a different version, if there is one, using ALTER MODEL … SET DEFAULT VERSION, then drop the unneeded version. If there is no other version to select as the default, because the model has only one version, drop the entire model.