I previously mentioned and linked to sample code for
I have since released this on CodePlex in the form of a built tool with documentation and source, and it is now published at
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