Equinox Online Help - Language Reference - A to Z

Home

DeleteMessage

Applies to
SyntaxDeleteMessage IdentifierExpression
Action[Statement] Deletes a message from the server message queue
ScopeUsable anywhere.
NotesThis statement deletes a queue message specified by the argument, IdentifierExpression. The identifier for any particular message may be determined using the MessageId function.
CategoryMessages
See Also DeleteAllMessages, DisplayMessage, MessageID, MessageMaxLength, MessageQueueSize, MessageRetrieved, MessagesWaiting, QueueMessage, RetrieveMessage
Example

The following example deletes an old message from the server queue, if it has not been retrieved.

If Not(MessageRetrieved (OldMessage)) Then
DeleteMessage OldMessage
end if