Deletes the specified message from the specified queue. To select the message to delete, use the ReceiptHandle of the message (not the MessageId which you receive when you send the message). Queues can delete a message from a queue even if a visibility timeout setting causes the message to be locked by another consumer. Queues automatically deletes messages left in a queue longer than the retention period configured for the queue.
Example
Use a bare-bones client and the command you need to make an API call.
Deletes the specified message from the specified queue. To select the message to delete, use the ReceiptHandle of the message (not the MessageId which you receive when you send the message). Queues can delete a message from a queue even if a visibility timeout setting causes the message to be locked by another consumer. Queues automatically deletes messages left in a queue longer than the retention period configured for the queue.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteMessageCommandInput
Returns
DeleteMessageCommandOutput
See
input
shape.response
shape.config
shape.Throws
AccessDeniedException (client fault)
Throws
ProductUnavailableException (client fault)
Throws
ResourceAlreadyExistsException (client fault)
Throws
ResourceNotFoundException (client fault)
Throws
ResourceUnderChangeException (client fault)
Throws
ServiceException (server fault)
Throws
QueuesServiceException
Base exception class for all service exceptions from Queues service.