CmdID / PowerShell / Cmdlets / Remove
Remove-SharedWithTeam
This cmdlet supports unsharing a channel with a team. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 3 parameters Its page in the reference
Parameters
-ChannelIdThread ID of the shared channel.-HostTeamIdTeam ID of the host team (Group ID).-SharedWithTeamIdTeam ID of the shared with team.