When you no longer need a stack group and its stacks, you can delete the stack instances and all of their associated resources from the specified target accounts within the specified regions.

Prerequisites

Ensure that you have created a stack group. For more information, see Create a stack group.

Background information

  • A stack group can be deleted only when the stack group does not contain any stack instances.
  • Deleting a stack will not affect the stack instance.
  • When deleting a stack instance, you can select whether to delete the stack.

Procedure

  1. Log on to the Resource Orchestration Service (ROS) console.
  2. Select the region where the target stack group resides from the drop-down list in the upper-left corner.
  3. In the left-side navigation pane, click Stack Groups.
  4. Delete the stack instances in the stack group.
    1. On the Stack Groups page, click 1 in the Actions column corresponding to the stack group, and choose Delete Stack from Stack Group from the shortcut menu.
    2. In the Set Deployment Options step of the Delete Stack from Stack Group wizard, configure the accounts, regions, maximum number of concurrent accounts, and fault tolerance for the stack group, and click Next.
    3. In the Confirm step of the Delete Stack from Stack Group wizard, confirm the accounts, regions, maximum number of concurrent accounts, and fault tolerance for the stack group, and click Delete.
      For information about how to set Maximum Number of Concurrent Accounts and Fault Tolerance, see Stack group deployment options.
    4. In the confirmation dialog box that appears, select the method to delete a stack, and click OK.
      • If you set Method to Delete the Stack to Release Resources, the stack will be deleted. In this case, all resources created in the stack will also be released. Use caution when performing this operation.
      • If you set Method to Delete the Stack to Retain Resources, the stack will not be deleted.
  5. Delete the stack group.
    On the Stack Groups page, click Delete in the Actions column corresponding to the stack group.