Share this page

# 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 );

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: