Delete a placement group - Amazon Elastic Compute Cloud
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).

Delete a placement group

If you need to replace a placement group or no longer need one, you can delete it. Before you can delete a placement group, it must contain no instances. You can terminate the instances, move them to another placement group, or remove them from the placement group.

Console
To delete a placement group
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose Placement Groups.

  3. Select the placement group and choose Actions, Delete.

  4. When prompted for confirmation, enter Delete and then choose Delete.

Amazon CLI
To delete a placement group

Use the delete-placement-group command.

aws ec2 delete-placement-group --group-name my-cluster
PowerShell
To delete a placement group

Use the Remove-EC2PlacementGroup cmdlet.

Remove-EC2PlacementGroup -GroupName my-cluster