How to clear exchange queue when there are hundreds or thousands of spam messages

Microsoft provide no easy way from within Exchange System manager to clear large numbers of spam emails in multiple queues.

Currently you have to find the message in each queue, and delete them queue by queue. If you have-