Commands › Microsoft Teams

Remove-CsTenantDialPlan

Microsoft Teams MicrosoftTeams Remove-*

Remove a tenant dial plan.

Quick start script

# Remove-CsTenantDialPlan — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsTenantDialPlan
$before | Format-List

# 3. Make the change (dry run first)
Remove-CsTenantDialPlan -Identity <String> -WhatIf
Remove-CsTenantDialPlan -Identity <String>

# 4. Verify and diff
$after = Get-CsTenantDialPlan
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Remove-CsTenantDialPlan [-Identity] <string> [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter The Confirm parameter prompts you for confirmation before the command is executed.
-Identity String yes The Identity parameter is the unique identifier of the tenant dial plan to remove.
-WhatIf SwitchParameter The WhatIf parameter describes what would happen if you executed the command, without actually executing the command.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.