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

*******************
delete_dhcp_options
*******************



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

  

  Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.

  

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


  **Request Syntax**
  ::

    response = client.delete_dhcp_options(
        DhcpOptionsId='string',
        DryRun=True|False
    )
    
  :type DhcpOptionsId: string
  :param DhcpOptionsId: **[REQUIRED]** 

    The ID of the DHCP options set.

    

  
  :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``.

    

  
  
  :returns: None

  **Examples**

  This example deletes the specified DHCP options set.
  ::

    response = client.delete_dhcp_options(
        DhcpOptionsId='dopt-d9070ebb',
    )
    
    print(response)

  
  Expected Output:
  ::

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

  