Share this page

# Example: imap_expunge

In the following example, the imap_expunge function deletes messages 15, 17, and 20 through 40.

        //Delete all messages marked with the /Delete flag

        imap_expunge("DeleteMarkedMail",
                LAST );

        //Delete specific messages

        imap_expunge("DeleteSpecificMail",
                "Message=15",
                "Message=17",
                "Message=20:40",
                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: