removeItemsRequest

Removes the specified items. Mailbox items (mail, appointments, notes, task, and phone) are moved to the Trash folder. This method is similar to removeItemRequest, except that it works on many items.

Request

<removeItemsRequest>
   <container type="types:uid"/>
   <items type="types:ItemRefList"/>
   <recurrenceAllInstances type="unsignedInt"/>
</removeItemsRequest>

Response

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

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. Does not apply to address book items.

items

Specifies a list of items 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.

recurrenceAllInstances

Specifies that you want the purge to be applied to all recurring items if you pass the recurrenceKey.

Example

<removeItemsRequest> 
   <container>450A68B9.domain1.po1.100.16E3837.1.FCC.1@13</container> 
   <items> 
      <item>450AB88A.domain1.po1.100.16E3837.1.FF6.1@2:450A68B9.
           domain1.po1.100.16E3837.1.FCC.1@13<item> 
      <item>450AB88A.domain1.po1.100.16E3837.1.FF6.1@2:450A68B9.
           domain1.po1.100.16E3837.1.FCC.1@13</item> 
   </items>
</removeItemsRequest>

<removeItemsResponse> 
   <status> 
      <code>0</code> 
   </status> 
</removeItemsResponse>