Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Deleting a message from the queue

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content