:doc:`DAX <../../dax>` / Client / delete_subnet_group

*******************
delete_subnet_group
*******************



.. py:method:: DAX.Client.delete_subnet_group(**kwargs)

  

  Deletes a subnet group.

   

  .. note::

    

    You cannot delete a subnet group if it is associated with any DAX clusters.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DeleteSubnetGroup>`_  


  **Request Syntax**
  ::

    response = client.delete_subnet_group(
        SubnetGroupName='string'
    )
    
  :type SubnetGroupName: string
  :param SubnetGroupName: **[REQUIRED]** 

    The name of the subnet group to delete.

    

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

    
    ::

      {
          'DeletionMessage': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DeletionMessage** *(string) --* 

        A user-specified message for this action (i.e., a reason for deleting the subnet group).

        
  
  **Exceptions**
  
  *   :py:class:`DAX.Client.exceptions.SubnetGroupInUseFault`

  
  *   :py:class:`DAX.Client.exceptions.SubnetGroupNotFoundFault`

  
  *   :py:class:`DAX.Client.exceptions.ServiceLinkedRoleNotFoundFault`

  