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