imap_expunge

Delete all messages marked for deletion (PHP 3, PHP 4, PHP 5)
bool imap_expunge ( resource imap_stream )

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

Returns TRUE.