Remove-PnPAzureADGroup
SYNOPSIS
Required Permissions
- Microsoft Graph API: Group.ReadWrite.All
Removes one Azure Active Directory group. This can be a security or Microsoft 365 group. Distribution lists are not currently supported by Graph API.
SYNTAX
Remove-PnPAzureADGroup -Identity <AzureADGroupPipeBind>
DESCRIPTION
Allows to remove Azure Active Directory group.
EXAMPLES
EXAMPLE 1
Remove-PnPAzureADGroup -Identity $groupId
Removes an Azure Active Directory group based on its ID
EXAMPLE 2
Remove-PnPAzureADGroup -Identity $group
Removes the provided Azure Active Directory group
PARAMETERS
-Identity
The Identity of the Azure Active Directory group
Type: AzureADGroupPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False