💾 Archived View for cfdocs.wetterberg.nu › using-cfn-cli-deleting-stack.gemini captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
To delete a stack, you run the `[aws cloudformation delete\-stack](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/delete-stack.html)` 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:
1. 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