:doc:`IoTWireless <../../iotwireless>` / Client / delete_queued_messages

**********************
delete_queued_messages
**********************



.. py:method:: IoTWireless.Client.delete_queued_messages(**kwargs)

  

  Remove queued messages from the downlink queue.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteQueuedMessages>`_  


  **Request Syntax**
  ::

    response = client.delete_queued_messages(
        Id='string',
        MessageId='string',
        WirelessDeviceType='Sidewalk'|'LoRaWAN'
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** 

    The ID of a given wireless device for which downlink messages will be deleted.

    

  
  :type MessageId: string
  :param MessageId: **[REQUIRED]** 

    If message ID is ``"*"``, it cleares the entire downlink queue for a given device, specified by the wireless device ID. Otherwise, the downlink message with the specified message ID will be deleted.

    

  
  :type WirelessDeviceType: string
  :param WirelessDeviceType: 

    The wireless device type, which can be either Sidewalk or LoRaWAN.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`IoTWireless.Client.exceptions.ValidationException`

  
  *   :py:class:`IoTWireless.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`IoTWireless.Client.exceptions.InternalServerException`

  
  *   :py:class:`IoTWireless.Client.exceptions.AccessDeniedException`

  