Remove-PnPAzureADGroup

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Remove-PnPAzureADGroup.md to change this file.

Required Permissions

  • Microsoft Graph API: Group.ReadWrite.All

Removes one Azure Active Directory group. This can be a security, distribution or Microsoft 365 group.

Syntax

Remove-PnPAzureADGroup
      -Identity <AzureADGroupPipeBind> 
      [<CommonParameters>]

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
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False