Deletes all messages from the queue.

public static void purgeQueue()

Return values

The function does not return any values.

General information

This function empties the message queue. Emptying the queue might take some time, depending on the queue length, but not more than 60 seconds. Only one purge is permitted per minute.

If the queue is empty, a null object is received on receive message APIs.


Copy code
public void checkPurge(){
        LrSqsClient.initClient(region, standardQueueUrl)
        LrSqsMessage message1 = LrSqsClient.receiveMessage();
        message1 = LrSqsClient.receiveMessage();
        if (message1 == null){
            lr.output_message("we got null after purge -> ok");
        else {
            lr.error_message("we do not get null after purge!");