Linked Questions

21 votes
3 answers
45k views

Fastest way to delete all items with C# [duplicate]

Possible Duplicate: Deleting all the items from a large list in SharePoint What is the fastest way to delete all items in a list programmatically? I do not want to remove list and re-create it, ...
Tschareck's user avatar
  • 2,155
10 votes
10 answers
53k views

How to delete all items in a List using PowerShell

I am using following PowerShell script to delete all items of the List. It's working fine but take too long for huge lists. Is there any efficient way of clearing list items, something like truncate ...
Firoz Ansari's user avatar
2 votes
7 answers
11k views

How show data in Sharepoint 2013 larger than 5000

I have created a sharepoint list in 2013 by importing an access 2013 table which has 7414 records and have set the list to sync with the table held on my local PC. I want to start over again but when ...
sirocco's user avatar
  • 21
6 votes
2 answers
8k views

Update/Delete All List-item in SharePoint online list with more than 30,000 records

I have SharePoint Online List which contains more than 30,000 records. There are two use-cases I need to work as below: I have added a new column in that list, I want to update that column based on ...
Jayesh Agarwal's user avatar
0 votes
2 answers
4k views

SP - Delete list item and folders in Recycle bin with C#

I'm with SP13 On-prem and I want to delete all items from lists and all folder in doclibraries in recycle bin... This is my code for list: if (list.BaseType == SPBaseType.GenericList) { while (...
Goshky's user avatar
  • 2,058
1 vote
3 answers
3k views

How to delete a view that is over the list-view threshold?

I created a view that will not display because it contains over 5000 entries. Now I cannot edit it or delete it. Anyway to get rid of it?
markovich's user avatar
0 votes
1 answer
3k views

why the delete is so slow?

A truncate would really help cause for each delete loop will take for ever. I am trying to delete 500k records and it's very slow. It's taking 3 minutes to delete 1 record. # Delete items from a list ...
Bill Baer's user avatar
  • 395
0 votes
1 answer
1k views

How to add in Event Receiver Items Deleting

How can I delete a elements in secound list bounded with secand list if I delete elements in first list. I write a code, but i don't know how to delete a bounded item, please help: public override ...
Grzegorz Z's user avatar
  • 1,713
1 vote
4 answers
484 views

Fastest way to delete thousands of listitems

I have a list with about 500.000 thousand items. I need to delete all list items which created date is after a specific date. The query would match about 450.000 thousand items. And then delete all ...
Luis Valencia's user avatar
1 vote
1 answer
105 views

Emtpy list with PowerShell

I am searching for a powershell script to empty a SharePoint list, can someone give me that? Or maybe there is an option in SharePoint / administration to empty a list with a click?
WWWWWWWWWP's user avatar
0 votes
2 answers
33 views

Please advice on rewrite event receiver code on SP2010

Recently I need to take care an SP2010 farm which I am not familiar. There is an event receiver with part of code as below: SPListItemCollection ListA = properties.Web.Lists["ListA"].Items; List<...
Mark L's user avatar
  • 4,075