Krichie – That SharePoint Guy

March 8, 2007

SPPurgeList on CodePlex – Purging a SharePoint list of all items and folders

Filed under: Development, SharePoint — Keith Richie @ 4:48 am

I previously mentioned and linked to sample code for

Purging a SharePoint list of all items and folders

I have since released this on CodePlex in the form of a built tool with documentation and source, and it is now published at

http://www.codeplex.com/sppurgelist

I had seen many requests for something like this on the microsoft.public.sharepoint.development_and_programming newsgroup. I could see a need for something simple to accomplish this, thus…here ya go J.

Allows you to purge the contents from any list or document library on WSS 2.0/SPS2003 or WSS 3.0/MOSS 2007.

If you need to retain a list/document library itself (Maintaining its original GUID) without completely deleting the entire list/document library and re-creating, this tool can help.

You could certainly use Web Folders (WebDAV) to clear the contents, but users stand the chance of accidentally deleting the contents of the forms folder which is not desirable. As well, you could script and automate the task using this tool if you desired.

Enjoy! and HTH!

- Keith Richie

3 Comments »

  1. [...] 03-07-2007: See this link as this SPIEFolder is now published at [...]

    Pingback by Purging a SharePoint list of all items and folders « Krichie - That SharePoint Guy — March 8, 2007 @ 4:48 am

  2. Can you tell me if in Sharepoint you can share items between lists?

    Comment by John — September 6, 2008 @ 1:01 am

  3. [...] How to delete all items in a list (using Powershell) Published March 25, 2009 Uncategorized Tags: lists, powershell This week, I needed to find a way to efficiently delete all items in a SharePoint list, with the least amount of customization and development effort. I found some code on the Internet (such as here). You can also use SP Designer, or download a custom webpart called SPPurgeList(see here). [...]

    Pingback by How to delete all items in a list (using Powershell) « The SharePoint Nomad — March 25, 2009 @ 10:31 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.