If you no longer need a launch template and a template version, you can delete them. This topic describes how to delete a launch template and a template version.
If you delete a launch template, all versions of the launch template are deleted along with the template. Proceed with caution.
Delete a launch template
Delete a launch template in the ECS console
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of the top navigation bar, select a region.
On the Launch Templates page, delete one or more templates.
To delete a single template, find the template and click Delete in the Actions column.
To batch delete templates, select the templates and click Delete on top of the Template ID column.
In the Delete Template message, click OK.
Delete a launch template by calling an API operation
Call the DeleteLaunchTemplate operation to delete a launch template.
Delete a template version
Default template versions cannot be deleted. If the template version that you want to delete is the default version, you can delete it only after you set another template version as the default version. If you no longer need all versions of a launch template, you can delete the launch template. For more information, see the Change the default version of a launch template section of the "Create a launch template version" topic.
Delete a template version in the ECS console
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of the top navigation bar, select a region.
On the Launch Templates page, select the template. Then, the template version information is displayed.
In the Version Information section, delete one or more versions.
To delete a single version, find the version and click Delete in the Actions column.
To batch delete versions, select the versions and click Delete on top of the Version column.
In the Delete Version message, click OK.
Delete a template version by calling an API operation
Call the DeleteLaunchTemplateVersion operation to delete a version of a launch template.