There are more AWS SDK examples available in the AWS Doc SDK Examples
Use DeleteStack with a CLI
The following code examples show how to use DeleteStack.
- CLI
-
- AWS CLI
-
To delete a stack
The following
delete-stackexample deletes the specified stack.aws cloudformation delete-stack \ --stack-namemy-stackThis command produces no output.
-
For API details, see DeleteStack
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: Deletes the specified stack.
Remove-CFNStack -StackName "myStack"-
For API details, see DeleteStack in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: Deletes the specified stack.
Remove-CFNStack -StackName "myStack"-
For API details, see DeleteStack in AWS Tools for PowerShell Cmdlet Reference (V5).
-