Remove-SPOSiteGroup
Published: July 16, 2012
Applies to: Office 365 | SharePoint Online
Removes a SharePoint Online group from a site collection.
Remove-SPOSiteGroup [-Site] <SpoSitePipeBind> [-Identity] <String>
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| Site | Required | Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind | Specifies the site collection to remove the group from. |
| Identity | Required | System.String | Specifies the name of the group to remove. |
Detailed 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.
Input Types
Return Types
--------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.
Change History
| Date | Description |
|---|---|
| July 16, 2012 | Initial publication |
