:doc:`IoT <../../iot>` / Client / delete_thing_group

******************
delete_thing_group
******************



.. py:method:: IoT.Client.delete_thing_group(**kwargs)

  

  Deletes a thing group.

   

  Requires permission to access the `DeleteThingGroup <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/DeleteThingGroup>`_  


  **Request Syntax**
  ::

    response = client.delete_thing_group(
        thingGroupName='string',
        expectedVersion=123
    )
    
  :type thingGroupName: string
  :param thingGroupName: **[REQUIRED]** 

    The name of the thing group to delete.

    

  
  :type expectedVersion: integer
  :param expectedVersion: 

    The expected version of the thing group to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.VersionConflictException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  