Delete a placement group
If you need to replace a placement group or no longer need one, you can delete it.
You can delete a placement group using one of the following methods.
Prerequisite
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
Open the Amazon EC2 console at
https://console.aws.amazon.com/ec2/.
-
In the navigation pane, choose Placement
Groups.
-
Select the placement group and choose
Actions,
Delete.
-
When prompted for confirmation, enter
Delete
and then choose
Delete.
- AWS CLI
-
To delete a placement group
The following delete-placement-group command deletes the specified
placement group.
aws ec2 delete-placement-group --group-name my-cluster
- PowerShell
-
To delete a placement group
The following Remove-EC2PlacementGroup command deletes the specified
placement group.
Remove-EC2PlacementGroup -GroupName my-cluster