AWS CloudFormation
User Guide (API Version 2010-05-15)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Deleting a Stack

To delete a stack, you run the aws cloudformation delete-stack command. You must specify the name of the stack that you want to delete. When you delete a stack, you delete the stack and all of its resources.

The following example deletes the myteststack stack:

PROMPT> aws cloudformation delete-stack --stack-name myteststack

Note

You cannot delete a stack that has termination protection enabled. For more information, see Protecting a Stack From Being Deleted