Skip to content

Commit 1179763

Browse files
authored
Update Remove-CsOnlineTelephoneNumber.md
1 parent 39f74df commit 1179763

File tree

1 file changed

+21
-46
lines changed

1 file changed

+21
-46
lines changed

skype/skype-ps/skype/Remove-CsOnlineTelephoneNumber.md

Lines changed: 21 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
---
22
external help file: Microsoft.Rtc.Management.Hosted.dll-help.xml
33
online version: https://docs.microsoft.com/powershell/module/skype/remove-csonlinetelephonenumber
4-
applicable: Skype for Business Online
4+
applicable: Skype for Business Online, Microsoft Teams
55
title: Remove-CsOnlineTelephoneNumber
66
schema: 2.0.0
77
manager: bulenteg
8-
author: tomkau
9-
ms.author: tomkau
8+
author: jenstrier
9+
ms.author: jenstr
1010
ms.reviewer:
1111
---
1212

1313
# Remove-CsOnlineTelephoneNumber
1414

1515
## SYNOPSIS
16-
Use the `Remove-CsOnlineTelephoneNumber` cmdlet to remove a telephone number from the Business Voice Directory.
16+
Use the `Remove-CsOnlineTelephoneNumber` cmdlet to remove one or more unassigned telephone numbers from your tenant.
1717

1818
## SYNTAX
1919

2020
```
21-
Remove-CsOnlineTelephoneNumber -TelephoneNumber <String[]> [-Tenant <Guid>] [-DomainController <Fqdn>]
22-
[-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
21+
Remove-CsOnlineTelephoneNumber -TelephoneNumber <String[]> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
2322
```
2423

2524
## DESCRIPTION
26-
Provide the detailed description here.
25+
This cmdlet removes one or more unassigned telephone numbers from your tenant. If at least one of the telephone numbers is assigned to a user or resource account, the cmdlet will fail and will not remove any of the specified telephone numbers.
2726

2827
## EXAMPLES
2928

@@ -32,22 +31,30 @@ Provide the detailed description here.
3231
Remove-CsOnlineTelephoneNumber -TelephoneNumber +14258884567
3332
```
3433

35-
This example removes the specified telephone number from the Business Voice Directory.
34+
This example removes the specified telephone number from the tenant.
35+
36+
### -------------------------- Example 2 --------------------------
37+
```
38+
[string[]]$tns="+14255551234","+14255551233"
39+
Remove-CsOnlineTelephoneNumber -TelephoneNumber $tns
40+
```
41+
42+
This example removes the specified list of telephone numbers from the tenant.
3643

3744

3845
## PARAMETERS
3946

4047
### -TelephoneNumber
41-
Specifies the target telephone number.
48+
Specifies the telephone number(s) to remove.
4249
For example: -TelephoneNumber tel:+18005551234, or -TelephoneNumber +14251234567
4350

4451
```yaml
4552
Type: String[]
4653
Parameter Sets: (All)
4754
Aliases:
48-
Applicable: Skype for Business Online
55+
Applicable: Skype for Business Online, Microsoft Teams
4956

50-
Required: False
57+
Required: True
5158
Position: Named
5259
Default value: None
5360
Accept pipeline input: False
@@ -61,23 +68,7 @@ The Confirm switch causes the command to pause processing and requires confirmat
6168
Type: SwitchParameter
6269
Parameter Sets: (All)
6370
Aliases: cf
64-
Applicable: Skype for Business Online
65-
66-
Required: False
67-
Position: Named
68-
Default value: None
69-
Accept pipeline input: False
70-
Accept wildcard characters: False
71-
```
72-
73-
### -DomainController
74-
This parameter is reserved for internal Microsoft use.
75-
76-
```yaml
77-
Type: Fqdn
78-
Parameter Sets: (All)
79-
Aliases: DC
80-
Applicable: Skype for Business Online
71+
Applicable: Skype for Business Online, Microsoft Teams
8172

8273
Required: False
8374
Position: Named
@@ -95,23 +86,7 @@ If the Force switch isn't provided in the command, you're prompted for administr
9586
Type: SwitchParameter
9687
Parameter Sets: (All)
9788
Aliases:
98-
Applicable: Skype for Business Online
99-
100-
Required: False
101-
Position: Named
102-
Default value: None
103-
Accept pipeline input: False
104-
Accept wildcard characters: False
105-
```
106-
107-
### -Tenant
108-
This parameter is reserved for internal Microsoft use.
109-
110-
```yaml
111-
Type: Guid
112-
Parameter Sets: (All)
113-
Aliases:
114-
Applicable: Skype for Business Online
89+
Applicable: Skype for Business Online, Microsoft Teams
11590

11691
Required: False
11792
Position: Named
@@ -128,7 +103,7 @@ By using this switch, you can view what changes would occur without having to co
128103
Type: SwitchParameter
129104
Parameter Sets: (All)
130105
Aliases: wi
131-
Applicable: Skype for Business Online
106+
Applicable: Skype for Business Online, Microsoft Teams
132107

133108
Required: False
134109
Position: Named

0 commit comments

Comments
 (0)