Search Results for

    Show / Hide Table of Contents

    Remove-PnPMicrosoft365Group

    SYNOPSIS

    Required Permissions

    • Microsoft Graph API: Group.ReadWrite.All

    Removes one Microsoft 365 Group

    SYNTAX

    Remove-PnPMicrosoft365Group -Identity <Microsoft365GroupPipeBind>  
    

    DESCRIPTION

    Allows to remove Microsoft 365 Group.

    EXAMPLES

    EXAMPLE 1

    Remove-PnPMicrosoft365Group -Identity $groupId
    

    Removes an Microsoft 365 Group based on its ID

    EXAMPLE 2

    Remove-PnPMicrosoft365Group -Identity $group
    

    Removes the provided Microsoft 365 Group

    EXAMPLE 3

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

    Removes all the public Microsoft 365 Groups

    PARAMETERS

    -Identity

    The Identity of the Microsoft 365 Group

    Type: Microsoft365GroupPipeBind
    Parameter Sets: (All)
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: True (ByValue)
    Accept wildcard characters: False
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer