共用方式為


Remove-SPOSiteGroup

移除網站集合中的 SharePoint Online 群組。

語法

Default (預設值)

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

Description

使用 Remove-SPOSiteGroup Cmdlet 可以在 [身分識別] 參數中指定群組名稱而從網站集合中移除群組。

您必須至少是 SharePoint Online 系統管理員,而且必須是網站集合管理員,才能執行 Cmdlet Remove-SPOSiteGroup

如需有關適用於 SharePoint Online 的 Windows PowerShell 權限和最新資訊,請參閱位於 SharePoint Online Management Shell 簡介的線上文件。

範例

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

此範例會從網站集合 https://contoso.sharepoint.com/sites/marketing. 中移除名稱為 GroupToRemove 的群組。

參數

-Identity

適用:SharePoint Online

指定要移除之群組的名稱。

參數屬性

類型:System.String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Site

適用:SharePoint Online

指定要移除群組的網站集合。

參數屬性

類型:Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援一般參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters