Deleting Spam Emails

How do I delete all the spam emails on my webmail? There are over 3700 of them and I can’t get to it via usermin due to an error (Failed to connect to localhost:143 : Connection refused).

any help would be great since it’s eating up about 50 meg of space…