3.1.4.3 DeleteItem

The DeleteItem operation deletes email messages from the server store.

The following is the WSDL port type specification of the DeleteItem operation.

 <wsdl:operation name="DeleteItem">
     <wsdl:input message="tns:DeleteItemSoapIn" />
     <wsdl:output message="tns:DeleteItemSoapOut" />
 </wsdl:operation>

The following is the WSDL binding specification of the DeleteItem operation.

 <wsdl:operation name="DeleteItem">
   <soap:operation soapAction="http://schemas.microsoft.com/exchange/services/2006/messages/DeleteItem" />
   <wsdl:input>
     <soap:header message="tns:DeleteItemSoapIn" part="Impersonation" use="literal"/>
     <soap:header message="tns:DeleteItemSoapIn" part="MailboxCulture" use="literal"/>
     <soap:header message="tns:DeleteItemSoapIn" part="RequestVersion" use="literal"/>
     <soap:body parts="request" use="literal" />
   </wsdl:input>
   <wsdl:output>
     <soap:body parts="DeleteItemResult" use="literal" />
     <soap:header message="tns:DeleteItemSoapOut" part="ServerVersion" use="literal"/>
   </wsdl:output>
 </wsdl:operation>

The protocol client sends a DeleteItemSoapIn request WSDL message, and the protocol server responds with a DeleteItemSoapOut response WSDL message.

If the DeleteItem WSDL operation request is successful, the server returns a DeleteItemResponse element, as specified in [MS-OXWSCORE] section 3.1.4.3.2.2, with the ResponseClass attribute, as specified in [MS-OXWSCDATA] section 2.2.4.67, of the DeleteItemResponseMessage element, as specified in [MS-OXWSCDATA] section 2.2.4.12, set to "Success". The ResponseCode element, as specified by [MS-OXWSCDATA] section 2.2.4.67, of the DeleteItemResponseMessage element is set to "NoError".

If the DeleteItem WSDL operation request is not successful, it returns a DeleteItemResponse element with the ResponseClass attribute of the DeleteItemResponseMessage element set to "Error". The ResponseCode element of the DeleteItemResponseMessage element is set to one of the common errors defined in [MS-OXWSCDATA] section 2.2.5.24.

For more information, see DeleteItem as described in [MS-OXWSCORE] section 3.1.4.3.

Show: