Remove-TeamChannel
Delete a channel. This will not delete content in associated tabs.
Note: The channel will be "soft deleted", meaning the contents are not permanently deleted for a time. So a subsequent call to Add-TeamChannel using the same channel name will fail if enough time has not passed.
Syntax
Remove-TeamChannel
-GroupId <String>
-DisplayName <String>
[<CommonParameters>]
Description
Important
Modules in the PS INT gallery for Microsoft Teams run on the /beta version in Microsoft Graph and are subject to change. Int modules can be install from here https://www.poshtestgallery.com/packages/MicrosoftTeams
.
Examples
Example 1
Remove-TeamChannel -GroupId 2f162b0e-36d2-4e15-8ba3-ba229cecdccf -DisplayName "Tech Reads"
Parameters
-DisplayName
Channel name to be deleted
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-GroupId
GroupId of the team
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |