Commands › Microsoft Teams
Remove-CsOnlineLisCivicAddress
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.
Quick start script
# Remove-CsOnlineLisCivicAddress — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsOnlineLisCivicAddress
$before | Format-List
# 3. Make the change (dry run first)
Remove-CsOnlineLisCivicAddress -CivicAddressId <Guid> -WhatIf
Remove-CsOnlineLisCivicAddress -CivicAddressId <Guid>
# 4. Verify and diff
$after = Get-CsOnlineLisCivicAddress
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Remove-CsOnlineLisCivicAddress -CivicAddressId <guid> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (4)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.