deletePlacementGroup

Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. You cannot delete a placement group that is a parent of a cluster placement group. Delete the cluster placement groups first. For more information, see Placement groups in the Amazon EC2 User Guide.

Samples

// This example deletes the specified placement group.
val resp = ec2Client.deletePlacementGroup {
    groupName = "my-cluster"
}