

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 `DeleteStack` dengan CLI
<a name="cloudformation_example_cloudformation_DeleteStack_section"></a>

Contoh kode berikut menunjukkan cara menggunakan`DeleteStack`.

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

**AWS CLI**  
**Untuk menghapus tumpukan**  
`delete-stack`Contoh berikut menghapus tumpukan yang ditentukan.  

```
aws cloudformation delete-stack \
    --stack-name my-stack
```
Perintah ini tidak menghasilkan output.  
+  Untuk detail API, lihat [DeleteStack](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/delete-stack.html)di *Referensi AWS CLI Perintah*. 

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

**Alat untuk PowerShell V4**  
**Contoh 1: Menghapus tumpukan yang ditentukan.**  

```
Remove-CFNStack -StackName "myStack"
```
+  Untuk detail API, lihat [DeleteStack](https://docs.aws.amazon.com/powershell/v4/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V4)*. 

**Alat untuk PowerShell V5**  
**Contoh 1: Menghapus tumpukan yang ditentukan.**  

```
Remove-CFNStack -StackName "myStack"
```
+  Untuk detail API, lihat [DeleteStack](https://docs.aws.amazon.com/powershell/v5/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V5)*. 

------