Deletes a launch template. You can use the LaunchTemplateId or LaunchTemplateName parameter to specify the launch template that you want to delete from the specified region.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the launch template. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
LaunchTemplateId | string | No | The ID of the launch template. For more information, see DescribeLaunchTemplates . You must specify | lt-bp1apo0bbbkuy0rj**** |
LaunchTemplateName | string | No | The name of the launch template. You must specify | testLaunchTemplateName |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"LaunchTemplateId": "lt-bp1apo0bbbkuy0rj****",
"LaunchTemplateVersionNumbers": {
"versionNumbers": [
0
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidRegion.NotExist | %s | The specified region does not exist. |
400 | MissingParameter | %s | A parameter is not specified. |
400 | InvalidParameter | %s | The specified parameter is invalid. |
403 | InnerServiceFailed | %s | An internal service cannot be called. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-11-06 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-03-10 | The Error code has changed. The response structure of the API has changed | View Change Details |