public List<ItemId> DeleteItems( IEnumerable<ItemId> ids )
Public Function DeleteItems ( ids As IEnumerable(Of ItemId) ) As List(Of ItemId)
The item is deleted using DeleteMethod mode.
If you have a collection of EwsItem objects, you can convert it into the collection of ItemId elements using EwsItemsToItemIds(IEnumerableEwsItem) method which you can then pass to the current method.
|This method can still complete successfully if at least one item has been deleted. To make sure all the requested items have been deleted, check that the length of the resulting list is the same as the count of elements in the input. ItemId values of the items which could not be deleted will not be present in the resuling list.|