Remove-SPOSiteGroup

Removes a SharePoint Online group from a site collection.

Syntax

Remove-SPOSiteGroup
      -Identity <String>
      -Site <SpoSitePipeBind>
      [<CommonParameters>]

Description

Use the Remove-SPOSiteGroup cmdlet to remove a group from a site collection by specifying the name of the group in the Identity parameter.

You must be a SharePoint Online global administrator and a site collection administrator to run the Remove-SPOSiteGroup cmdlet.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at http://go.microsoft.com/fwlink/p/?LinkId=251832 (http://go.microsoft.com/fwlink/p/?LinkId=251832).

Examples

-----------------------EXAMPLE-----------------------------

Remove-SPOSiteGroup -Site https://contoso.sharepoint.com/sites/marketing -Identity GroupToRemove

This example removes a group named GroupToRemove from the site collection https://contoso.sharepoint.com/sites/marketing.

Required Parameters

-Identity

Specifies the name of the group to remove.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-Site

Specifies the site collection to remove the group from.

Type:SpoSitePipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online