Improve removing all items from a SharePoint list without the need to loop thorugh all items #1549
Unanswered
mvcsharepointdev
asked this question in
Q&A
Replies: 1 comment
-
@mvcsharepointdev : I'm not aware of a faster item deletion for lists, you're using the batched approach which is good. Depending on the complexity of your list you could also drop the list and then recreate, however if you require complex provisioning that might not always be faster and maybe there's other processes that could fail if the list is temporarily gone |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this method inside my .net core console application : -
Where i am passing the SharePoint list name, and the code will get all items and remove the items one by one.. But this is a bit slow.. so if there a faster way to clear a SharePoint online list? mainly without the need to get all items as a first step?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions