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

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


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