4.8 maint

Hi there, I have A LOT of mails on a folder, from which I should delete based on a cutoff date, Is there a way to do this easy? do I have to select each of the 5000 mails on a mail to mail basis to be able to delete them?