removeItemRequest

Removes the specified item. Mailbox items (mail, appointments, notes, task, and phone) are moved to the Trash folder.

Request

<removeItemRequest>
   <container type="types:uid"/>
   <id type="types:uid"/>
</removeItemRequest>

Response

<removeItemResponse>
   <status type="types:Status"/>
</removeItemResponse>

Elements

container

Specifies the container. If the container is not specified, the item is removed from all of the containers and stored in the Trash. If the container is specified, the item is removed only from that specific container and the link is stored in the Trash. This functionality does not apply to address book items.

id

Specifies the ID of the item to move to the Trash folder.

code

Returns the error number related to the event. 0 indicates that the request was successful.

status

Returns the success or failure of the method.

Example

<removeItemRequest>
   <container>A.dom1.po1.100.0.1.0.1@19</container>
   <id>4062AED9.dom1.po1.100.164677A.1.1AE.1@4:A.
           dom1.po1.100.0.1.0.1@19</id>
</removeItemRequest>