Deletes a hosted zone. Send a
DELETE
request to the
/Amazon Route 53 API version/hostedzone/hosted zone ID
resource.
Delete a hosted zone only if there are no resource record sets other than the default SOA record and NS resource record sets. If the hosted zone contains other resource record sets, delete them before deleting the hosted zone. If you try to delete a hosted zone that contains other resource record sets, Amazon Route 53 denies your request with a HostedZoneNotEmpty
error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.
/// The hosted zone contains resource records that are not SOA or NS records.
///
/// The specified domain name is not valid.
///
/// The input is not valid.
///
/// No hosted zone exists with the ID that you specified.
///
/// If Amazon Route 53 can't process a request before the next request arrives, it will
/// reject subsequent requests for the same hosted zone and return an HTTP 400 error
/// (Bad request
). If Amazon Route 53 returns this error repeatedly for the
/// same request, we recommend that you wait, in intervals of increasing duration, before
/// you try the request again.
///