You might end up with this requirement quite often and and try top down approach for delete :
for (int count=0;count < itemCount ; count++)
{ itemcoll[count].Delete(); }
and bump into exceptions , well the other way to do it is bottom up delete
for (int count =itemCount-1 ; count>0 ; count--)
{ itemcoll[count].Delete(); }
Subscribe to:
Post Comments (Atom)

1 comments:
Try this too,
Delete item from SharePoint List and more
Post a Comment