:doc:`IoTDataPlane <../../iot-data>` / Client / delete_thing_shadow

*******************
delete_thing_shadow
*******************



.. py:method:: IoTDataPlane.Client.delete_thing_shadow(**kwargs)

  

  Deletes the shadow for the specified thing.

   

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

   

  For more information, see `DeleteThingShadow <http://docs.aws.amazon.com/iot/latest/developerguide/API_DeleteThingShadow.html>`__ in the IoT Developer Guide.

  

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


  **Request Syntax**
  ::

    response = client.delete_thing_shadow(
        thingName='string',
        shadowName='string'
    )
    
  :type thingName: string
  :param thingName: **[REQUIRED]** 

    The name of the thing.

    

  
  :type shadowName: string
  :param shadowName: 

    The name of the shadow.

    

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

    
    ::

      {
          'payload': StreamingBody()
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The output from the DeleteThingShadow operation.

      
      

      - **payload** (:class:`.StreamingBody`) -- 

        The state information, in JSON format.

        
  
  **Exceptions**
  
  *   :py:class:`IoTDataPlane.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`IoTDataPlane.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.ServiceUnavailableException`

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

  
  *   :py:class:`IoTDataPlane.Client.exceptions.MethodNotAllowedException`

  
  *   :py:class:`IoTDataPlane.Client.exceptions.UnsupportedDocumentEncodingException`

  