Share this page

# Example: mapi_delete_mail_ex

In the following example, the mapi_delete_mail_ex function deletes all or selected messages.

    // Delete all mail

        mapi_delete_mail_ex(&mapi,"DeleteMail",
                    LAST );

    // Delete mail w/ Message Id=XYZ & ABC

        mapi_delete_mail_ex(&mapi,"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: