Skip to content

Deletes the specified placement group

Description

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.

Usage

ec2_delete_placement_group(DryRun, GroupName)

Arguments

  • DryRun

    Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • GroupName

    [required] The name of the placement group.

Value

An empty list.

Request syntax

svc$delete_placement_group(
  DryRun = TRUE|FALSE,
  GroupName = "string"
)

Examples

# This example deletes the specified placement group.
# 
svc$delete_placement_group(
  GroupName = "my-cluster"
)