Deletes a trail.
Operation description
This topic describes how to delete a sample trail named trail-test.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
actiontrail:DeleteTrail |
delete |
*Trail
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the trail that you want to delete. The name must be 6 to 36 characters in length. The name must start with a lowercase letter and can contain lowercase letters, digits, hyphens (-), and underscores (_). Note
The name must be unique within your Alibaba Cloud account. |
my-test |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
test |
||
| RequestId |
string |
The ID of the request. |
145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0 |
Examples
Success response
JSON format
{
"RequestId": "145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | TrailNotFoundException | The specified Trail does not exist. | The specified Trail is not existed. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.