Deleting a stack - AWS CloudFormation

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 its resources.

The following example deletes the myteststack stack:

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

You can't delete a stack that has termination protection enabled. For more information, see Protecting a stack from being deleted