DELETE on Message

The DELETE action on a Message endpoint removes the specified message from the queue. Messages stay in the queue until they are deleted with a DELETE request.

DELETE requests are validated on the following:

Note:

Even if the message is locked by another reader due to the visibility timeout setting, it will still be deleted from the queue.

Returns Success unless MessageId is malformed.

NameDescriptionTypeValue
MessageIdRequired. The ID of the message to delete.String.The message ID returned from a PUT or GET request on a MessageQueue.

The following example of a DELETE action shows how to delete a message from the queue.

See DeleteMessage (Query) for sample response information.

This request never fails unless the MessageId is malformed. Even if there is no such MessageID, it returns success.