:doc:`RDS <../../rds>` / Client / delete_option_group

*******************
delete_option_group
*******************



.. py:method:: RDS.Client.delete_option_group(**kwargs)

  

  Deletes an existing option group.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteOptionGroup>`_  


  **Request Syntax**
  ::

    response = client.delete_option_group(
        OptionGroupName='string'
    )
    
  :type OptionGroupName: string
  :param OptionGroupName: **[REQUIRED]** 

    The name of the option group to be deleted.

     

    .. note::

      

      You can't delete default option groups.

      

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`RDS.Client.exceptions.OptionGroupNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.InvalidOptionGroupStateFault`

  

  **Examples**

  This example deletes the specified option group.
  ::

    response = client.delete_option_group(
        OptionGroupName='mydboptiongroup',
    )
    
    print(response)

  
  Expected Output:
  ::

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

  