Purging a SharePoint list of all items and folders

I saw a posting on microsoft.public.sharepoint.development_and_programming requesting this, so I thought I would share here as well in case anyone needed this functionality. The code contained in this file: SPPurgeList.txt, contains sample code to purge a list of all it's contents and folders (Define WSSV3 for that). (Update 03-07-2007: See this link as this SPIEFolder …