This topic describes how to delete a launch template and a specified template version.

Note When you delete a launch template, all versions of the template are also deleted.

Delete a specified template version

  1. In the left-side navigation pane, choose Deployment & Elasticity > Launch Templates.
  2. Select the target template ID to view the version information.
  3. In the Version Information area, find the version you want to delete and, in the Actions column, click Delete.
    Note You cannot delete the default template version. If the version you want to delete is the default version, change it to a non-default version, and then delete it. If you no longer need any versions of a single template, delete the template.


  4. Click OK.

You can also complete this task by calling the DeleteLaunchTemplateVersion API action through the Alibaba Cloud CLI, OpenAPI Explorer, or Alibaba Cloud SDK.

Delete a launch template

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Deployment & Elasticity > Launch Templates.
  3. Find the template you want to delete, and click Delete in the Actions column.


  4. Click OK.

You can also complete this task by calling the DeleteLaunchTemplate API action through the Alibaba Cloud CLI, OpenAPI Explorer, or Alibaba Cloud SDK.