Mail_IMAP::delete()

mixed delete(int|array &$mid)

Wrapper method for imap_delete. Marks the specified message for deletion via the "deleted" flag.

Accepts an array of message ids to mark for deletion, or a single message id.

Note: POP3 mailboxes do not remember flag settings between connections, for POP3 mailboxes this function should be used in addtion to Mail_IMAP::expunge.

Method summary:

param int|array &$mid
return bool
throws ErrorStack: Unable to mark message (message number) for deletion. The call to imap_delete was not successful.
access public
see imap_delete
Mail_IMAP::expunge
Execution time: 0.06 seconds