DeleteQueuedMessages
Source:
src/AWS/IoTWireless/DeleteQueuedMessages.ts
Runtime binding for iotwireless:DeleteQueuedMessages — delete queued
downlink messages for the bound wireless device from a deployed Lambda or
Task.
Purging the Downlink Queue
Section titled “Purging the Downlink Queue”Provide the DeleteQueuedMessagesHttp implementation layer on the
Function effect, bind the device in the init phase, then call the
returned client at runtime.
// initconst deleteQueued = yield* AWS.IoTWireless.DeleteQueuedMessages(device);
// runtime — "*" deletes every queued messageyield* deleteQueued({ MessageId: "*" });// on the Function effect:// .pipe(Effect.provide(AWS.IoTWireless.DeleteQueuedMessagesHttp))