:doc:`EC2 <../../ec2>` / Client / delete_placement_group

**********************
delete_placement_group
**********************



.. py:method:: EC2.Client.delete_placement_group(**kwargs)

  

  Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see `Placement groups <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html>`__ in the *Amazon EC2 User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup>`_  


  **Request Syntax**
  ::

    response = client.delete_placement_group(
        DryRun=True|False,
        GroupName='string'
    )
    
  :type DryRun: boolean
  :param 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``.

    

  
  :type GroupName: string
  :param GroupName: **[REQUIRED]** 

    The name of the placement group.

    

  
  
  :returns: None

  **Examples**

  This example deletes the specified placement group.

  ::

    response = client.delete_placement_group(
        GroupName='my-cluster',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  