Deletes a scenario.
This topic describes how to delete a scenario. In this topic, the ts-4f83704400994409****
scenario in the China (Hangzhou) region is deleted.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteTemplateScratch |
The operation that you want to perform. Set the value to DeleteTemplateScratch. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region in which the scenario is created. You can call the DescribeRegions operation to query the most recent region list. |
TemplateScratchId | String | Yes | ts-4f83704400994409**** |
The ID of the scenario. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1B9C6333-5904-5A1E-9845-CB17A369AFDC |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteTemplateScratch
&RegionId=cn-hangzhou
&TemplateScratchId=ts-4f83704400994409****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteTemplateScratchResponse>
<RequestId>1B9C6333-5904-5A1E-9845-CB17A369AFDC</RequestId>
</DeleteTemplateScratchResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1B9C6333-5904-5A1E-9845-CB17A369AFDC"
}
Error codes
For a list of error codes, visit the API Error Center.