Exchange 2013: Delete many items programmatically from Exchange servers
This sample authenticates an email address and password entered from the console, creates and then saves two email messages to the server, and then deletes both email messages from the server.