Deleting a message

After reading Adaptive Server’s mail with xp_readmail, you can remove the message from Adaptive Server’s 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.