Delete a distribution.
            
 Declaration Syntax
 Declaration Syntax| C# | 
public DeleteDistributionResponse DeleteDistribution( DeleteDistributionRequest request )
 Parameters
 Parameters- request (DeleteDistributionRequest)
- Container for the necessary parameters to execute the DeleteDistribution service method.
 Return Value
 Return ValueThe response from the DeleteDistribution service method, as returned by CloudFront.
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| AccessDeniedException | Access denied. | 
| DistributionNotDisabledException | |
| InvalidIfMatchVersionException | The If-Match version is missing or not valid for the distribution. | 
| NoSuchDistributionException | The specified distribution does not exist. | 
| PreconditionFailedException | The precondition given in one or more of the request-header fields evaluated to false. |