Skip to content

/AWS1/CL_EC2=>DELETELAUNCHTEMPLATEVERSIONS()

About DeleteLaunchTemplateVersions

Deletes one or more versions of a launch template.

You can't delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate.

You can delete up to 200 launch template versions in a single request. To delete more than 200 versions in a single request, use DeleteLaunchTemplate, which deletes the launch template and all of its versions.

For more information, see Delete a launch template version in the EC2 User Guide.

Method Signature

IMPORTING

Required arguments:

IT_VERSIONS TYPE /AWS1/CL_EC2VRSSTRINGLIST_W=>TT_VERSIONSTRINGLIST TT_VERSIONSTRINGLIST

The version numbers of one or more launch template versions to delete. You can specify up to 200 launch template version numbers.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

IV_LAUNCHTEMPLATEID TYPE /AWS1/EC2LAUNCHTEMPLATEID /AWS1/EC2LAUNCHTEMPLATEID

The ID of the launch template.

You must specify either the launch template ID or the launch template name, but not both.

IV_LAUNCHTEMPLATENAME TYPE /AWS1/EC2LAUNCHTEMPLATENAME /AWS1/EC2LAUNCHTEMPLATENAME

The name of the launch template.

You must specify either the launch template ID or the launch template name, but not both.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2DELLAUNCHTMPLVRS01 /AWS1/CL_EC2DELLAUNCHTMPLVRS01