

Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh [SDK AWS Doc](https://github.com/awsdocs/aws-doc-sdk-examples). GitHub 

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Gunakan `DeleteHostedZone` dengan CLI
<a name="route-53_example_route-53_DeleteHostedZone_section"></a>

Contoh kode berikut menunjukkan cara menggunakan`DeleteHostedZone`.

------
#### [ CLI ]

**AWS CLI**  
**Untuk menghapus zona yang dihosting**  
`delete-hosted-zone`Perintah berikut menghapus zona yang dihosting dengan `id` dari`Z36KTIQEXAMPLE`:  

```
aws route53 delete-hosted-zone --id Z36KTIQEXAMPLE
```
+  Untuk detail API, lihat [DeleteHostedZone](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/route53/delete-hosted-zone.html)di *Referensi AWS CLI Perintah*. 

------
#### [ PowerShell ]

**Alat untuk PowerShell V4**  
**Contoh 1: Menghapus zona yang dihosting dengan ID yang ditentukan. Anda akan diminta konfirmasi sebelum perintah dilanjutkan kecuali Anda menambahkan parameter sakelar -Force.**  

```
Remove-R53HostedZone -Id Z1PA6795UKMFR9
```
+  Untuk detail API, lihat [DeleteHostedZone](https://docs.aws.amazon.com/powershell/v4/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V4)*. 

**Alat untuk PowerShell V5**  
**Contoh 1: Menghapus zona yang dihosting dengan ID yang ditentukan. Anda akan diminta konfirmasi sebelum perintah dilanjutkan kecuali Anda menambahkan parameter sakelar -Force.**  

```
Remove-R53HostedZone -Id Z1PA6795UKMFR9
```
+  Untuk detail API, lihat [DeleteHostedZone](https://docs.aws.amazon.com/powershell/v5/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V5)*. 

------