Error when try to delete the email

Error when try to delete the email

Hi,

I have write the script in vb.net to read the email and delete it. I have issue when I run the delete command below:

connection via pop

command: DELE 1
result: -ERR mx.zohomail.com Syntax error, command unrecognized: 

please help, what is the correct command to delete