- Documentation
Elastic Compute Service
Elastic Compute Service
API Reference
Launch templates
DeleteLaunchTemplateVersion - Deletes versions of instance launch templates
Launch templates
DeleteLaunchTemplateVersion - Deletes versions of instance launch templates
DeleteLaunchTemplateVersion - Deletes versions of instance launch templates
Call the DeleteLaunchTemplateVersion operation to delete a version of an instance launch template. You cannot delete the default version.
Debugging
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
Request parameters
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters. Action string required Sample value: DeleteLaunchTemplateVersion
The action that you want to perform. Value: DeleteLaunchTemplateVersion.
Version stringrequired Sample value: 2020-04-01
The API version. Value: 2020-04-01.
LaunchTemplateId string Optional Sample value: lt-ysxc16auaugh9zfy****
The launch template ID.
tip
You are required to specify LaunchTemplateId or LaunchTemplateName to specify the template.
LaunchTemplateName string Optional Sample value: templateNameDemo
The launch template name.
tip
You are required to specify LaunchTemplateId or LaunchTemplateName to specify the template.
DeleteVersions.N integer[] required Sample value: 2
The version number of the instance launch template.
- Argument - N: indicates the serial number of the version. Valid range: 1-29.
- Separate multiple version numbers with &.
Response parameters
This operation has no specific response parameters. For more information, refer to Response structure. Sample request
Sample response
Error codes
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes. Last updated: 2026.06.18 17:48:25