I have a need to search through my inbox (about 22,000 emails) and batch delete emails that match a certain search parameter

Is this possible?

Ive tried to do an email filter and send them to a new folder and then delete the folder but filters only seem to run on new emails - there is no run now on existing emails option

Many thanks, Ade