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

*****************************
delete_vpc_peering_connection
*****************************



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

  

  Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the ``active`` state. The owner of the requester VPC can delete a VPC peering connection in the ``pending-acceptance`` state. You cannot delete a VPC peering connection that's in the ``failed`` or ``rejected`` state.

  

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


  **Request Syntax**
  ::

    response = client.delete_vpc_peering_connection(
        DryRun=True|False,
        VpcPeeringConnectionId='string'
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, 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 VpcPeeringConnectionId: string
  :param VpcPeeringConnectionId: **[REQUIRED]** 

    The ID of the VPC peering connection.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Return': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Return** *(boolean) --* 

        Returns ``true`` if the request succeeds; otherwise, it returns an error.

        
  