Deletes a custom transcoding template.
Usage notes
A custom transcoding template cannot be deleted if it is being used by a job that has been submitted.
Limits on QPS
You can call this operation up to 100 times per second. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation. For more information, see QPS limits.
Debugging
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 | 16f01ad6175e4230ac42bb5182cd**** |
The ID of the custom transcoding template that you want to delete. To obtain the ID of the custom transcoding template, you can log on to the ApsaraVideo Media Processing (MPS) console and choose Global Settings > Encoding Templates in the left-side navigation pane. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 2247541A-9F27-47EE-B6EC-484B5475**** |
The ID of the request. |
| TemplateId | String | 16f01ad6175e4230ac42bb5182cd**** |
The ID of the custom transcoding template that is deleted. |
Examples
Sample requests
http(s)://mts.cn-shanghai.aliyuncs.com/?Action=DeleteTemplate
&ResourceOwnerId=0
&TemplateId=16f01ad6175e4230ac42bb5182cd****
&<Common request parameters>Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteTemplateResponse>
<RequestId>2247541A-9F27-47EE-B6EC-484B5475****</RequestId>
<TemplateId>16f01ad6175e4230ac42bb5182cd****</TemplateId>
</DeleteTemplateResponse>JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "2247541A-9F27-47EE-B6EC-484B5475****",
"TemplateId" : "16f01ad6175e4230ac42bb5182cd****"
}Error codes
For a list of error codes, visit the API Error Center.