Discuss this help topic in SecureBlackbox Forum
IMAP: Delete messages on the server
To delete the messages on the server you first need to mark them as deleted. After that you need to call Expunge() method , which will remove the marked messages from the server.
The optional Response parameter after execution of the method contains the numbers of messages that have been deleted.