Deleting a change set - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Deleting a change set

Deleting a change set removes it from the list of change sets for the stack. Deleting a change set prevents you or another user from accidentally executing a change set that shouldn't be applied. Unless you delete them, CloudFormation retains all change sets until you update the stack.

Delete a change set for nested stacks
To delete a change set for nested stacks (console)
  1. In the Amazon CloudFormation console, in Stacks, select the stack name associated with the root change set.

  2. In the navigation pane, choose Change sets to view a list of the stack's change sets.

  3. Select the name of the change set that you want to delete.

  4. On the change set's details page, choose Delete. By choosing Delete change set, you will delete the whole hierarchy of nested change sets.

    Note

    The delete operation for change sets for nested stacks is asynchronous and will show a DELETE_PENDING status, followed by a DELETE_IN_PROGRESS status. Upon completion of the delete change set operation, the change sets will be removed from the list. Nested stacks in the REVIEW_IN_PROGRESS status will also be deleted if they were created during the change set creation.

    CloudFormation immediately starts to delete the change set from the stack's list of change sets.

    Note

    If you have nested stacks that are stuck in an in-progress operation, see Troubleshooting Errors in Nested stacks are stuck in UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS, or UPDATE_ROLLBACK_IN_PROGRESS.

Delete a change set
To delete a change set (console)
  1. In the Amazon CloudFormation console, in Stacks, select the name of the stack that contains the change set that you want to delete.

  2. In the navigation pane, choose Change sets to view a list of the stack's change sets.

  3. Select the name of the change set that you want to delete.

  4. On the change set's details page, choose Delete change set.

    CloudFormation immediately starts to delete the change set from the stack's list of change sets, and you're redirected to the Stacks page.

To delete a change set (Amazon CLI)
  • Run the aws cloudformation delete-change-set command, specifying the ID of the change set that you want to delete, as shown in the following example:

    $ aws cloudformation delete-change-set \ --change-set-name \ arn:aws:cloudformation:us-east-1:123456789012:changeSet/SampleChangeSet/1a2345b6-0000-00a0-a123-00abc0abc000