v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1444270263.9 KB

Deletes a trail. This operation must be called from the region in which the trail was created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

post/#X-Amz-Target=com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DeleteTrail

Headers

X-Amz-Target'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DeleteTrail' required

Request body

Namestring required

Specifies the name or the CloudTrail ARN of the trail to be deleted. The following is the format of a trail ARN. <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>

Response

Success

DeleteTrailResponse required

Returns the objects or data listed below if successful. Otherwise, returns an error.