Movatterモバイル変換


[0]ホーム

URL:


Delete a stack from the CloudFormation console - AWS CloudFormation
DocumentationAWS CloudFormationUser Guide
Related resources

Delete a stack from the CloudFormation console

If you no longer need the resources in a stack, you can delete the entire stack.

When deleting a stack, CloudFormation deletes all resources in that stack unless you used a deletion policy to retain specific resources. For more information, seeDeletionPolicy attribute.

To delete a stack (console)
  1. Sign in to the AWS Management Console and open the CloudFormation console athttps://console.aws.amazon.com/cloudformation.

  2. On the navigation bar at the top of the screen, choose the AWS Region where the stack is located.

  3. On theStacks page, choose the stack that you want to delete. The stack must be currently running.

  4. ChooseDelete.

  5. When prompted for confirmation, chooseDelete.

To force delete a stack (console)

A stack deletion might fail because a resource in the stack fails to delete. For example, CloudFormation will fail the deletion of a resource that another stack also depends on. Any resources that haven't been deleted will remain until you can successfully delete the stack. If the deletion fails and returns aDELETE_FAILED state, you can choose to retry using one of two methods.

  1. On theStacks page in the CloudFormation console, choose the stack that you want to force delete.

  2. In the stack details pane, chooseRetry delete.

  3. Choose between the following options:

    • Delete this stack but retain resources: This option allows you to select the specific resources that originally failed to delete, but you want to retain during the force stack deletion.

    • Force delete this entire stack: This option retains all resources that failed to delete, and retains dependencies of those resources.

  4. ChooseDelete to begin the force delete process with your selections.

To review retained resources (console)

After deleting the stack, you can view the resources that were retained in the console.

  1. In the stacks list, choose theFilter status and selectDeleted.

  2. Choose the deleted stack.

  3. Choose theResources tab.

  4. All retained resources show theDELETE_SKIPPEDStatus.

  5. Choose the retained resource you want to review.

To delete a stack using the command line

You can use one of the following commands:

For examples of using the command line to delete a stack, seeExamples of CloudFormation stack operation commands for the AWS CLI and PowerShell.

Related resources

For help troubleshooting stack deletion errors, see theDelete stack fails troubleshooting topic.

For information on protecting stacks from being accidentally deleted, seeProtect CloudFormation stacks from being deleted.

Cancel a stack update
View deleted stacks

[8]
ページ先頭

©2009-2025 Movatter.jp