I am trying to mass delete all the items in a list. I was not able to figure out how to do that with the UpdateListItems method. So I am getting all ListIDs from the list using the GetListItems method and then processing them with a collection operation to delete them 1 at a time.
When the GetListItems CWS runs, it is only selecting the last 7 days of items. I created a view which selects 10,000 ID's and put that in the XML and still only returns the last 7 days of items.
I have checked the list view (SharePoint Calendar - All Events view) and there are no filters configured on the list view and there are none on the "special 10K ListID View" I created.
Here is the XML. This runs but only returns the last 7 days.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetListItems>
<m:listName>{5CB12B4D-6680-4AC9-AFA0-9A0614FA7CD2}</m:listName>
<m:viewname>{DE3F2E7B-6B67-4E54-A3DB-BA1D7F7AF04A}</m:viewname> (this is the 10K list item view) and this comment is not in the XML...
<m:viewFields>
<ViewFields>
<FieldRef Name="ID" />
</ViewFields>
</m:viewFields>
</m:GetListItems>
</soap:Body>
</soap:Envelope>
Looking for:
1. Ideas on what may be limiting the number of rows selected.
2. If you know of a way to mass delete all items in a list, that would be much easier.
Thanks in advance for your help!
Mike
