Partager via


Delete Method

The Delete method of the SPListCollection class deletes the list with the specified GUID from the collection.

Parameters

Example

The following code example deletes the list with a specified name from the collection of lists in a site.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security