Delete a Message

After reading Adaptive Server mail with xp_readmail, you can remove the message from the inbox by passing the message identifier to xp_deletemail.

If you do not specify a message identifier, xp_deletemail deletes the first message in the inbox.