Use DeleteHostedZone with an Amazon SDK or CLI - Amazon Route 53
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Use DeleteHostedZone with an Amazon SDK or CLI

The following code examples show how to use DeleteHostedZone.

CLI
Amazon CLI

To delete a hosted zone

The following delete-hosted-zone command deletes the hosted zone with an id of Z36KTIQEXAMPLE:

aws route53 delete-hosted-zone --id Z36KTIQEXAMPLE
PowerShell
Tools for PowerShell

Example 1: Deletes the hosted zone with the specified ID. You will be prompted for confirmation before the command proceeds unless you add the -Force switch parameter.

Remove-R53HostedZone -Id Z1PA6795UKMFR9
  • For API details, see DeleteHostedZone in Amazon Tools for PowerShell Cmdlet Reference.

For a complete list of Amazon SDK developer guides and code examples, see Using Route 53 with an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.