Example: mapi_delete_mail
In the following examples, the mapi_delete_mail function deletes all or selected messages.
// Delete all mail.
mapi_delete_mail("DeleteMail", LAST );
// Get the Message identifier of current email message.
char *msgid = mapi_get_property_sz(&mapi,"Message ID");
// Delete mail w/ Message Id=XYZ & ABC
mapi_delete_mail("DeleteMail", "Id=ABC", "Id=XYZ", LAST );