Remove-CsOnlineLisLocation

 

Topic Last Modified: 2015-09-28

Use the Remove-CsOnlineLisLocation cmdlet to remove an existing emergency location from the Location Information Service (LIS.) You can only remove locations that have no assigned users.

Remove-CsOnlineLisLocation -LocationId <Guid> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-Tenant <Guid>] [-WhatIf [<SwitchParameter>]]

This example removes the location specified by its identity.

Remove-CsOnlineLisLocation -LocationId 788dd820-c136-4255-9f61-24b880ad0763

If the location specified for removal is assigned to users, the cmdlet will fail until the users assignments are removed.

 

Parameter Required Type Description

LocationId

Required

System.Guid

Specifies the unique identifier of the location to be deleted. Location identities can be discovered by using the Get-CsOnlineLisLocation cmdlet.

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm switch causes the command to pause processing, and requires confirmation to proceed.

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.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch causes the command to simulate its results. By using this switch, you can view what changes would occur without having to commit those changes.

This cmdlet supports pipelined input from the Get-CsOnlineLisLocation cmdlet.

 
Show: