Delete messages that are not needed anymore from imap.