Share via


Remove(String) Method

The Remove method of the SPGroupCollection class removes the cross-site group with the specified name from the collection.

Parameters

name   A string that contains the name of the group.

Example

The following code example removes a specified cross-site group from the current site collection.

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