aws ec2 delete-launch-template
Deletes a launch template. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To delete a launch template
The following delete-launch-template example deletes the specified launch template.
aws ec2 delete-launch-template --launch-template-id lt-0abcd29075EXAMPLEIdentify--launch-template-idThe ID of the launch template.Its output
{
"LaunchTemplate": {
"LatestVersionNumber": 2,
"LaunchTemplateId": "lt-0abcd29075EXAMPLE",
"LaunchTemplateName": "TestTemplate",
"DefaultVersionNumber": 2,
"CreatedBy": "arn:aws:iam::123456789012:root",
"CreateTime": "2017-11-23T16:46:25.000Z"
}
}For more information, see Delete a launch template or a launch template version in the Amazon EC2 User Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--launch-template-idThe ID of the launch template.--launch-template-nameThe name of the launch template.