Correct way to delete all SPListItems
Today while coding a Sharepoint timer job I needed to clean my SPList.
I tried common ways of deleting using "foreach" and "for i++ ..." but I got the error. I couldn't delete list and create it again in timer job because of custom views. As usually for SharePoint solution is not ordinary 🙂
So, as it turned out, correct syntax of deleting all SPListItems is using "for i--":
for (int i = list.Items.Count - 1; i >= 0; i--) {
list.Items.Delete(i);
}
Net 10.0 is not available for Azure Functions. How to fix
Custom Label with multiple styles in TextField of Fluent UI
First impressions after using the new SPFX 1.22.2 with Heft