Show / Hide Table of Contents

    Remove-PnPTeamsChannel

    SYNOPSIS

    Required Permissions

    • Microsoft Graph API: Group.ReadWrite.All

    Removes a channel from a Microsoft Teams instance.

    SYNTAX

    Remove-PnPTeamsChannel -Team <TeamsTeamPipeBind> -Identity <TeamsChannelPipeBind> [-Force]
      [<CommonParameters>]
    

    DESCRIPTION

    EXAMPLES

    EXAMPLE 1

    Remove-PnPTeamsChannel -Team 4efdf392-8225-4763-9e7f-4edeb7f721aa -DisplayName "My Channel"
    

    Removes the channel specified from the team specified

    PARAMETERS

    -Force

    Specifying the Force parameter will skip the confirmation question.

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

    -Identity

    Specify the channel id or display name of the channel to delete.

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

    -Team

    Specify the group id, mailNickname or display name of the team to use.

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

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer