CmdID

CmdID / aws / aws ec2

aws ec2 delete-launch-template

Deletes a launch template. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

3 in the AWS CLI reference
--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.