in reply to how to check and delete emails

It may lack documentation but I'll point you to a script you can use as an example: Kill that Swen worm on your POP3 account!