💾 Archived View for cfdocs.wetterberg.nu › using-cfn-cli-deleting-stack.gemini captured on 2024-05-12 at 16:00:10. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

Deleting a stack

Search

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

Protecting a stack from being deleted