AWS CloudFormation
User Guide (API Version 2010-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

cfn-delete-stack

Description

Delete an existing stack

Syntax

cfn-delete-stack StackName common-options

Options

NameDescriptionRequired

StackName

The name of the stack you want to delete. You can also set this value using --stack-name.

Type: String

Default: None

Yes

--force

Delete the stack without a confirmation prompt.

Type: String

Default: false

Valid value: true | false

No

Output

The command returns no output. Use cfn-describe-stacks to discover the stack delete status.

AWS CloudFormation displays errors on stderr.

Examples

Example Request

This example deletes a stack named example-stack.

PROMPT> cfn-delete-stack example-stack

Warning: 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