You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Launch templates
DeleteLaunchTemplateVersion - Deletes versions of instance launch templates
Copy page
Download PDF
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​
​
GET /?Action=DeleteLaunchTemplateVersion&Version=2020-04-01&LaunchTemplateId=lt-ysxc16auaugh9zfy****&DeleteVersions.1=1 HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
ServiceName: ecs​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "20220419160338010225133143077B****",​
"Action": "DeleteLaunchTemplateVersion",​
"Version": "2020-04-01",​
"Service": "ecs",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
Error codes​
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.​
​
Status code​
Error code​
Error message​
Description​
400​
InvalidArgument​
The specified argument is invalid.​
The specified parameter is invalid.​
​
Last updated: 2026.06.18 17:48:25