Remove-CsOnlineLisCivicAddress

Use the Remove-CsOnlineLisCivicAddress cmdlet to delete an existing civic address from the Location Information Server (LIS).

You can't remove a civic address if any of its associated locations are assigned to users or phone numbers.

Syntax

Remove-CsOnlineLisCivicAddress
      -CivicAddressId <guid>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Removes the specified emergency address or addresses.

Examples

Example 1

Remove-CsOnlineLisCivicAddress -CivicAddressId ee38d9a5-33dc-4a32-9fb8-f234cedb91ac

This example removes the emergency civic address with the specified identification.

Example 2

Get-CsOnlineLisCivicAddress -City Redmond | Remove-CsOnlineLisCivicAddress

This example removes all the emergency civic addresses in the city of Redmond.

Parameters

-CivicAddressId

Specifies the unique identifier of the civic address to be deleted. You can find civic address identifiers by using the Get-CsOnlineLisCivicAddress cmdlet.

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

-Confirm

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

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

-Force

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.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

-WhatIf

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.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

Inputs

This cmdlet accepts pipelined input from the Get-CsOnlineLisCivicAddress cmdlet.

Outputs

None