:doc:`PlacementGroup <index>` / Action / delete

******
delete
******



.. py:method:: EC2.PlacementGroup.delete(**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 = placement_group.delete(
        DryRun=True|False,
        
    )
    
  :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``.

    

  
  
  :returns: None