Skip to content

Latest commit

 

History

History
95 lines (64 loc) · 2.6 KB

File metadata and controls

95 lines (64 loc) · 2.6 KB
external help file sharepointonline.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/sharepoint-online/remove-spositegroup
applicable SharePoint Online
title Remove-SPOSiteGroup
schema 2.0.0
author trent-green
ms.author trgreen
ms.reviewer

Remove-SPOSiteGroup

SYNOPSIS

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 at least a SharePoint Online administrator and be 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 Intro to SharePoint Online Management Shell.

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.

PARAMETERS

-Identity

Specifies the name of the group to remove.

Type: String
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Site

Specifies the site collection to remove the group from.

Type: SpoSitePipeBind
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Getting started with SharePoint Online Management Shell

Get-SPOSiteGroup

New-SPOSiteGroup