imap_expunge

(PHP 4, PHP 5, PHP 7)

imap_expungeDelete all messages marked for deletion

Description

imap_expunge ( resource $imap_stream ) : bool

Deletes all the messages marked for deletion by imap_delete(), imap_mail_move(), or imap_setflag_full().

Parameters

imap_stream

An IMAP stream returned by imap_open().

Return Values

Returns true.

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.imap-expunge.php