Remove-PnPUnifiedGroup

Removes one Office 365 Group (aka Unified Group)

Syntax

Remove-PnPUnifiedGroup
      -Identity <UnifiedGroupPipeBind>

Examples

------------------EXAMPLE 1------------------

Remove-PnPUnifiedGroup -Identity $groupId

Removes an Office 365 Group based on its ID

------------------EXAMPLE 2------------------

Remove-PnPUnifiedGroup -Identity $group

Removes the provided Office 365 Group

------------------EXAMPLE 3------------------

Get-PnPUnifiedGroup | ? Visibility -eq "Public" | Remove-PnPUnifiedGroup

Removes all the public Office 365 Groups

Parameters

-Identity

The Identity of the Office 365 Group

Type:UnifiedGroupPipeBind
Position:Named
Accept pipeline input:True
Accept wildcard characters:False