Delete a launch template - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Delete a launch template

If you no longer require a launch template, you can delete it. Deleting a launch template deletes all of its versions. To delete a specific version of a launch template, see Delete a launch template version.

When you delete a launch template, it doesn't affect any instances that you've launched from the launch template.

Console
To delete a launch template
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose Launch Templates.

  3. Select the launch template and choose Actions, Delete template.

  4. Enter Delete to confirm deletion, and then choose Delete.

Amazon CLI
To delete a launch template

Use the delete-launch-template (Amazon CLI) command and specify the launch template.

aws ec2 delete-launch-template --launch-template-id lt-01238c059e3466abc
PowerShell
To delete a launch template

Use the Remove-EC2LaunchTemplate (Amazon Tools for PowerShell) command and specify the launch template. If -Force is omitted, PowerShell prompts for a confirmation.

Remove-EC2LaunchTemplate -LaunchTemplateId lt-0123456789example -Force