Clear-CsOnlineTelephoneNumberReservation

 

Topic Last Modified: 2015-10-05

Use the Clear-CsOnlineTelephoneNumberReservation cmdlet to clear a reserved list of telephone numbers before they are acquired. The telephone numbers will then be available for search and reservation again.

Clear-CsOnlineTelephoneNumberReservation -InventoryType <String> -ReservationId <String> [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-Tenant <Guid>]

This example clears a reservation with an inventory type of "Service".

Clear-CsOnlineTelephoneNumberReservation -ReservationId b1ae43f5-07ab-4b81-be32-4b8cc2d11f75 -InventoryType Service

NoteNote:
This cmdlet will fail if any of the numbers in the reservation have already been assigned. An error message will identify the source of the failure.

 

Parameter Required Type Description

InventoryType

Required

System.String

Specifies the target telephone number type for the cmdlet. Acceptable values are:

  • "Service" for numbers assigned to conferencing support.

  • "Subscriber" for numbers supporting public switched telephone network (PSTN) functions.

ReservationId

Required

System.String

Specifies the identification of the reservation you want to clear.

DomainController

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

This parameter is reserved for internal Microsoft use.

Force

Optional

System.Management.Automation.SwitchParameter

The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for administrative input if required.

Tenant

Optional

System.Guid

This parameter is reserved for internal Microsoft use.

 
Show: