Remove-PnPDeletedMicrosoft365Group

Tip

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

Required Permissions

  • Microsoft Graph API: Group.ReadWrite.All

Permanently removes one deleted Microsoft 365 Group

Syntax

Remove-PnPDeletedMicrosoft365Group
      -Identity <Microsoft365GroupPipeBind> 
      [<CommonParameters>]

Examples

EXAMPLE 1

Remove-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f

Permanently removes a deleted Microsoft 365 Group based on its ID

EXAMPLE 2

$group = Get-PnPDeletedMicrosoft365Group -Identity 38b32e13-e900-4d95-b860-fb52bc07ca7f
Remove-PnPDeletedMicrosoft365Group -Identity $group

Permanently removes the provided deleted Microsoft 365 Group

Parameters

-Identity

The identity of the deleted Microsoft 365 Group to be deleted

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