:doc:`Neptune <../../neptune>` / Client / delete_db_subnet_group

**********************
delete_db_subnet_group
**********************



.. py:method:: Neptune.Client.delete_db_subnet_group(**kwargs)

  

  Deletes a DB subnet group.

   

  .. note::

    

    The specified database subnet group must not be associated with any DB instances.

    

  

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


  **Request Syntax**
  ::

    response = client.delete_db_subnet_group(
        DBSubnetGroupName='string'
    )
    
  :type DBSubnetGroupName: string
  :param DBSubnetGroupName: **[REQUIRED]** 

    The name of the database subnet group to delete.

     

    .. note::

      

      You can't delete the default subnet group.

      

     

    Constraints:

     

    Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

     

    Example: ``mySubnetgroup``

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Neptune.Client.exceptions.InvalidDBSubnetGroupStateFault`

  
  *   :py:class:`Neptune.Client.exceptions.InvalidDBSubnetStateFault`

  
  *   :py:class:`Neptune.Client.exceptions.DBSubnetGroupNotFoundFault`

  