You can call this operation to delete a trail.

Request parameters

Name Type Required Example Description
Action String Yes DeleteTrail The operation that you want to perform. Set the value to DeleteTrail.
RegionId String Yes cn-hangzhou The ID of the region where the instance is located. For more information about the latest list of Alibaba Cloud regions, see DescribeRegions.
Name String Yes my-test The name of the trail to be deleted.

Response parameters

Name Type Example Description
RequestId String 145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0 The ID of the request.


Sample requests
&<Common request parameters>

Error codes

Error code Description HTTP status code
InvalidTrailNameException The error message returned when the name of the specified trail is invalid. 400
TrailNotFoundException The error message returned when the specified trail does not exist. 404