Search code examples
exchangewebservicesexchange-server-2010

Exchange 2010 EWS Delete Message


How do I delete email messages in a mailbox using EWS?

There doesn't seem to be much online for it?

I'm planning an application and I need to know if it's possible and how to do it.


Solution

  • The Item class has a Delete method. You can open the message and then delete it.

    http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.item.delete.aspx