I have a big List which I want to empty. Therefore I create a template from that list, delete the list and create a new list from the template I just saved before.
I know there are other possibilities in deleting items from lists and also know of the drawbacks (especially regarding LookUps)
Now the threshold is too small and I do not want to change that in the central administration.
I also know I can override that threshold in Querys:
SPQuery q1 = new SPQuery(); q1.QueryThrottleMode = SPQueryThrottleOption.Override;
But I do not want to execute a SPQuery, but do the following:
listCopy.SaveAsTemplate(backupName, backupName, string.Empty, false); listCopy.Delete();
(listCopy is an object of Type SPList)
Can I override the throttle there too? How? Or can I achieve the same (saving a template and deleting List) with SPQuery also?