Skip to main content

ISQSDeleteMessageRequest

Interface in AWS.SQS

Interface for DeleteMessage requests.

Ancestors

Properties

ReceiptHandle

property ReceiptHandle: string

The receipt handle associated with the message to delete.

You must use the ReceiptHandle to delete a message, not the MessageId which you receive when sending the message. Each time you receive a message, it comes with a unique receipt handle. If you receive the same message more than once, you will get a different receipt handle each time. You must use the receipt handle from the most recent time you received the message. Using an old receipt handle will cause the request to succeed, but the message might not be deleted. Receipt handles are opaque strings that become invalid after the message is deleted or after the message visibility timeout expires.