April 2018
Intermediate to advanced
280 pages
8h 37m
English
Deleting the SQS queue is pretty straight forward. You create the delete request object by invoking the DeleteMessageRequest constructor by passing the URL of the message queue and the receipt handle. Then, you can simply invoke the DeleteMessage() function call and pass the request object to it. The queue will then be deleted.
The following code demonstrates this:
var message_handle = received_message_response.Messages[0].ReceiptHandle;var deleteRequest = new DeleteMessageRequest{ QueueUrl = queue_url, ReceiptHandle = message_handle};sqs_object.DeleteMessage(deleteRequest);
Now that we have seen how to manipulate SQS queues using the AWD C# SDK, let's also see how these operations can be done on the Unix ...