The DeleteMessage action removes the specified message from the queue. Messages stay in the queue until they are deleted with a DeleteMessage request.
DeleteMessage requests are validated on the following:
The message specified must exist.
Note: | Even if the message is locked by another reader due to the visibility timeout setting, it will still be deleted from the queue. |
| Name | Description | Type | Value |
|---|---|---|---|
MessageId | Required. The ID of the message to delete. | String | A message ID value returned from a SendMessage request. |
The following example DeleteMessage request shows how to delete a message from the queue.
http://queue.amazonaws.com/A29E9VSPHGOG23/queue1 ?Action=DeleteMessage &AWSAccessKeyId=0GS7553JW74RRM612K02 &Version=2006-04-01 &MessageId=17VXQHSGX0SG4ZEPPK7R%7C0QE42ST4KW7RK9HSY074%7C0Z4AN912X0H2EP8BV6XJ &Expires=2007-01-12T12:00:00Z &Signature=CN2SbNq%2B2Vw1W3lbc7wpM5gzDHE=