You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
30
29
### -------------------------- Example 1 --------------------------
This example removes the specified telephone number from the Business Voice Directory.
53
+
This example removes the specified list of telephone numbers from the tenant.
36
54
37
55
38
56
## PARAMETERS
39
57
40
58
### -TelephoneNumber
41
-
Specifies the target telephone number.
42
-
For example: -TelephoneNumber tel:+18005551234, or -TelephoneNumber +14251234567
59
+
Specifies the telephone number(s) to remove. The format can be withor without the prefixed +, but needs to include country code etc.
43
60
44
61
```yaml
45
62
Type: String[]
46
63
Parameter Sets: (All)
47
64
Aliases:
48
-
Applicable: Skype for Business Online
65
+
Applicable: Skype for Business Online, Microsoft Teams
49
66
50
-
Required: False
67
+
Required: True
51
68
Position: Named
52
69
Default value: None
53
70
Accept pipeline input: False
@@ -61,23 +78,7 @@ The Confirm switch causes the command to pause processing and requires confirmat
61
78
Type: SwitchParameter
62
79
Parameter Sets: (All)
63
80
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
81
+
Applicable: Skype for Business Online, Microsoft Teams
81
82
82
83
Required: False
83
84
Position: Named
@@ -95,23 +96,7 @@ If the Force switch isn't provided in the command, you're prompted for administr
95
96
Type: SwitchParameter
96
97
Parameter Sets: (All)
97
98
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
99
+
Applicable: Skype for Business Online, Microsoft Teams
115
100
116
101
Required: False
117
102
Position: Named
@@ -128,7 +113,7 @@ By using this switch, you can view what changes would occur without having to co
128
113
Type: SwitchParameter
129
114
Parameter Sets: (All)
130
115
Aliases: wi
131
-
Applicable: Skype for Business Online
116
+
Applicable: Skype for Business Online, Microsoft Teams
132
117
133
118
Required: False
134
119
Position: Named
@@ -151,6 +136,7 @@ None
151
136
None
152
137
153
138
## NOTES
139
+
If one or more of the telephone numbers are assigned to a user or a service, the cmdlet will display an error message and none of the telephone numbers specified will be removed from your tenant.
0 commit comments