Deleting a stack - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

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