1
1
---
2
2
external help file : Microsoft.Rtc.Management.Hosted.dll-help.xml
3
3
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
5
5
title : Remove-CsOnlineTelephoneNumber
6
6
schema : 2.0.0
7
7
manager : bulenteg
8
- author : tomkau
9
- ms.author : tomkau
8
+ author : jenstrier
9
+ ms.author : jenstr
10
10
ms.reviewer :
11
11
---
12
12
13
13
# Remove-CsOnlineTelephoneNumber
14
14
15
15
## 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 .
17
17
18
18
## SYNTAX
19
19
20
20
```
21
- Remove-CsOnlineTelephoneNumber -TelephoneNumber <String[]> [-Tenant <Guid>] [-DomainController <Fqdn>]
22
- [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
21
+ Remove-CsOnlineTelephoneNumber -TelephoneNumber <String[]> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
23
22
```
24
23
25
24
## 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 .
27
26
28
27
## EXAMPLES
29
28
@@ -32,22 +31,30 @@ Provide the detailed description here.
32
31
Remove-CsOnlineTelephoneNumber -TelephoneNumber +14258884567
33
32
```
34
33
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.
36
43
37
44
38
45
## PARAMETERS
39
46
40
47
### -TelephoneNumber
41
- Specifies the target telephone number.
48
+ Specifies the telephone number(s) to remove .
42
49
For example: -TelephoneNumber tel:+18005551234, or -TelephoneNumber +14251234567
43
50
44
51
``` yaml
45
52
Type : String[]
46
53
Parameter Sets : (All)
47
54
Aliases :
48
- Applicable : Skype for Business Online
55
+ Applicable : Skype for Business Online, Microsoft Teams
49
56
50
- Required : False
57
+ Required : True
51
58
Position : Named
52
59
Default value : None
53
60
Accept pipeline input : False
@@ -61,23 +68,7 @@ The Confirm switch causes the command to pause processing and requires confirmat
61
68
Type : SwitchParameter
62
69
Parameter Sets : (All)
63
70
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
81
72
82
73
Required : False
83
74
Position : Named
@@ -95,23 +86,7 @@ If the Force switch isn't provided in the command, you're prompted for administr
95
86
Type : SwitchParameter
96
87
Parameter Sets : (All)
97
88
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
115
90
116
91
Required : False
117
92
Position : Named
@@ -128,7 +103,7 @@ By using this switch, you can view what changes would occur without having to co
128
103
Type : SwitchParameter
129
104
Parameter Sets : (All)
130
105
Aliases : wi
131
- Applicable : Skype for Business Online
106
+ Applicable : Skype for Business Online, Microsoft Teams
132
107
133
108
Required : False
134
109
Position : Named
0 commit comments