Deletes a trail.
 Declaration Syntax
 Declaration Syntax| C# | 
public DeleteTrailResponse DeleteTrail( DeleteTrailRequest deleteTrailRequest )
 Parameters
 Parameters- deleteTrailRequest (DeleteTrailRequest)
- Container for the necessary parameters to execute the DeleteTrail service method on AmazonCloudTrail.
 Return Value
 Return ValueThe response from the DeleteTrail service method, as returned by AmazonCloudTrail.
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| InvalidTrailNameException | |
| TrailNotFoundException |