Updated on 2025-12-10 GMT+08:00

Deleting a Template

Function

This API is used to delete a launch template.

This API is used to delete a launch template and all its versions.

Debugging

You can debug this API in API Explorer.

Authorization

Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.
  • If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
  • If you are using identity policy-based authorization, the permissions listed below are required.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

ecs:launchTemplates:delete

write

-

-

-

-

URI

DELETE /v3/{project_id}/launch-templates/{launch_template_id}

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

For details about how to obtain the ID, see Obtaining a Project ID.

launch_template_id

Yes

Specifies the template ID.

Request

None.

Response

None.

Example Request

Delete the launch template whose ID is 452a25e4-35e7-4ead-8869-c50eb1a08fde.

DELETE https://{endpoint}/v3/{project_id}/launch-templates/452a25e4-35e7-4ead-8869-c50eb1a08fde

Example Response

None.