SharePoint: How to delete all list items or the whole list within one click?

Sometimes you wish to delete all items within a SharePoint list. Therefore you normally use SharePoint List features and select all items and press delete. But in some projects we needed to delete about 10.000 list items and we are not allowed to delete the list and rebuild it. So we use a small tool. Written in C# and looks like this:

 

First you select a URL and connect to a SharePoint site. Then you get a list of all lists with its itemcount. Now you have to options.

“Delete all list items” or “Delete complete list(s)”

That’s it.

Thanks to Sascha

..:: I LIKE SHAREPOINT ::..

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

Dennis de Vries About Dennis de Vries
Loving SharePoint, Social Media and like to work together with creative people all over the world.

Submit comment

Allowed HTML tags: <a href="http://google.com">google</a> <strong>bold</strong> <em>emphasized</em> <code>code</code> <blockquote>
quote
</blockquote>

Please fill in the captcha: * Time limit is exhausted. Please reload CAPTCHA.