Export (0) Print
Expand All

4.3 Deleting a Post Object

In this scenario, Jason wants to delete the Post object from the "Archive" public folder.

The following is the client request to delete the Post object.

<?xml version="1.0" encoding="utf-16"?>
<DeleteItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" DeleteType="HardDelete">
  <ItemIds xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
    <ItemId Id="AQIARgAAAxpEc5CqZhHNm8gAqgAvxFoJALc3Iqrb5rxDhrUn6kXjFS4AARH6nq4AAAC3NyKq2+a8Q4a1J+pF4xUuAAER+p7GAAAALgAAAxpEc5CqZhHNm8gAqgAvxFoDALc3Iqrb5rxDhrUn6kXjFS4AARH6nq4AAAA=" ChangeKey="FgAAABYAAAC3NyKq2+a8Q4a1J+pF4xUuAAER+qDG" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
  </ItemIds>
</DeleteItemType>

The following is the server response.

<?xml version="1.0" encoding="utf-16"?>
<DeleteItemResponseType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ResponseMessages xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
    <DeleteItemResponseMessage ResponseClass="Success">
      <ResponseCode>NoError</ResponseCode>
    </DeleteItemResponseMessage>
  </ResponseMessages>
</DeleteItemResponseType>
Show:
© 2014 Microsoft