(Windows only) Deletes a message from the SAP ASE message inbox.
xp_deletemail [msg_id]
1> declare @cur_msg_id binary(255) 2> exec xp_deletemail @msg_id = @cur_msg_id
xp_deletemail
Obtain the msg_id using xp_findnextmsg.
If the msg_id parameter is not used, the message to be deleted defaults to the first message in the message inbox.
By default, only a system administrator can execute xp_deletemail. A system administrator can grant this permission to other users.