You can call this operation to delete a template.

If the template is shared with other Alibaba Cloud accounts, you must unshare the template before you delete it.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteTemplate

The operation that you want to perform. Set the value to DeleteTemplate.

TemplateId String Yes 5ecd1e10-b0e9-4389-a565-e4c15efc****

The ID of the template. This parameter applies to only private templates.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String 8C5D90E1-66B6-496C-9371-3807F8DA80A8

The ID of the request.


Sample requests

http(s):// Action=DeleteTemplate
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "8C5D90E1-66B6-496C-9371-3807F8DA80A8"

Error codes

For a list of error codes, visit the API Error Center.


Error code

Error message




Template { ID } is being processed, retry later.

The error message returned because the specified template has an action in progress. Try again later. ID indicates the template ID.