AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
DELETE
request to the /Route 53 API version/hostedzone/hosted zone ID
resource.
For more information about deleting a hosted zone, see Deleting a Hosted Zone in the Amazon Route 53 Developer Guide.
HostedZoneNotEmpty
error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.Namespace: Amazon.Route53
Assembly: AWSSDK.dll
Version: (assembly version)
public abstract DeleteHostedZoneResponse DeleteHostedZone( DeleteHostedZoneRequest request )
Container for the necessary parameters to execute the DeleteHostedZone service method.
Exception | Condition |
---|---|
HostedZoneNotEmptyException | The hosted zone contains resource record sets in addition to the default NS and SOA resource record sets. Before you can delete the hosted zone, you must delete the additional resource record sets. |
InvalidInputException | Some value specified in the request is invalid or the XML document is malformed. |
NoSuchHostedZoneException | |
PriorRequestNotCompleteException | The request was rejected because Amazon Route 53 was still processing a prior request. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5