Home > SharePoint > SharePoint – Deletion In Batches

SharePoint – Deletion In Batches

December 16th, 2009

Post Views: 70

I have been facing an issue after inserting quite much data for testing into one of my lists. It was really hard to get rid of the data and the deletion in sequence was just a nightmare. After some googling I figured out batch deletion would be a perfect solution. Sample code is shown in the following:

Batch Deletion Code

As my data was huge in size like 100,000+ records were there. I prepared batches of thousands and deleted one batch at a time. During each batch, I applied a sleep as well. This way deletion was so fast that I was able to delete all records in like less than an hour.

SharePoint , , , , , , ,

  1. No comments yet.
  1. No trackbacks yet.


Copyright © 2006-2011 W@rfi