| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Delete an existing stack
cfn-delete-stack
StackName
common-options
| Name | Description | Required |
|---|---|---|
|
|
The name of the stack you want to delete. You can also set this value using
Type: String Default: None |
Yes |
|
|
Delete the stack without a confirmation prompt. Type: String Default: Valid value: |
No |
The command returns no output. Use cfn-describe-stacks to discover the stack delete status.
AWS CloudFormation displays errors on stderr.
This example deletes a stack named example-stack.
PROMPT>cfn-delete-stack example-stackWarning: Deleting a stack will lead to deallocation of all of the stack's resources. Are you sure you want to delete this stack? [Ny]y