Modifier

Partager via


Remove-CsTeamsTranslationRule

Cmdlet to remove an existing number manipulation rule (or list of rules).

Syntax

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

Description

You can use this cmdlet to remove an existing number manipulation rule (or list of rules). The rule can be used, for example, in the settings of your SBC (Set-CsOnlinePSTNGateway) to convert a callee or caller number to a desired format before entering or leaving Microsoft Phone System.

Examples

Example 1

Remove-CsTeamsTranslationRule -Identity AddPlus1

This example removes the "AddPlus1" translation rule. As the rule can be used in some places, integrity check is preformed to ensure that the rule is not in use. If the rule is in use an error thrown with specifying which SBC use this rule.

Example 2

Get-CsTeamsTranslationRule -Filter 'tst*' | Remove-CsTeamsTranslationRule

This example removes all translation rules with Identifier starting with tst.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Identity

Identifier of the rule. This parameter is required.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Describes what would happen if you executed the command without actually executing the command. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False