# Remove Contact Center

#### **Preauthorization of deletion request**

1. Administration | Settings | Invoice&#x20;
2. In the Legal Name field enter "Authorization to delete Landis Contact Center organization" | Save All

#### Remove service account credentials

1. Administration | Settings | External Services
2. Remove Presence API credentials | Save

**Landis Contact Center Organization Name**

1. Find and save Landis Contact Center organization name for final step. See [Organization Name](/definitions/contact-center-organization.md)

**Remove Landis Contact Center Properties in Azure**

1. Navigate to **"**[**https://portal.azure.com**](https://portal.azure.com)**"** using a Microsoft **Admin** account
2. Search and select **Enterprise Applications**
3. In Enterprise Applications, search for **Landis Contact Center**
4. You will see **up to 5** Landis Contact Center applications
5. Select each application and delete it from the **Properties tab**

**Delete Teams resource accounts associated with Contact Center queues and IVRs**

1. In Teams, unassign the phone number applied to each resource accounts.
2. Navigate to "<https://admin.microsoft.com>" using a Microsoft Admin account.  Users | Active users
3. Select appropriate resource accounts and delete

**Remove Policy Recording Configuration in Teams (If Previously Enabled)**

1. Run the following PowerShell script for the data center location of your Landis Contact Center organization to remove the recording configuration. (The MicrosoftTeams PowerShell module will need to be installed.)

{% tabs %}
{% tab title="North America" %}

```powershell
Connect-MicrosoftTeams

$RA = Get-CsOnlineApplicationInstance | where {$_.applicationid -eq "3a08b250-02ce-4316-94f7-069f4ae0c41b"}
if ($RA){
    Write-Host "Getting Teams recording policies..."
    $TCRPS = Get-CsTeamsComplianceRecordingPolicy | Where {$_.ComplianceRecordingApplications.Id -eq $RA.ObjectId}
    if ($TCRPS){
        Foreach ($TCRP in $TCRPS){
            if ($TCRP.ComplianceRecordingApplications.Count -eq 1){
                Write-Host "Removing Landis Teams recording policy from users..."
                Get-CsOnlineUser | where {$_.TeamsComplianceRecordingPolicy -eq ($TCRP.Identity.Split(":"))[1]} | Grant-CsTeamsComplianceRecordingPolicy -PolicyName $null
                $groups = Get-CsGroupPolicyAssignment | Where-Object {$_.PolicyType -like "TeamsComplianceRecordingPolicy" -and $_.PolicyName -eq ($TCRP.Identity.Split(":"))[1]}
                    if ($groups){
                        Foreach ($group in $groups){
                        Grant-CsTeamsComplianceRecordingPolicy -Group $group.groupid -PolicyName $null
                        }
                    }
                Write-Host "Removing Landis recording policy..."
                Remove-CsTeamsComplianceRecordingPolicy -Identity $TCRP.Identity
            }
            if ($TCRP.ComplianceRecordingApplications.Count -ge 2){
                Write-Host "Removing Landis recording application from Teams recording policy..."
                $removedLCCRA = $tcrp.ComplianceRecordingApplications | Where-Object {$_.Id -ne $ra.ObjectId}
                Set-CsTeamsComplianceRecordingPolicy $TCRP.Identity -ComplianceRecordingApplications @($removedLCCRA)
            }
            Write-Host "Completed! Please delete the Landis recording user account" $ra.UserPrincipalName
        }
    }
}
```

{% endtab %}

{% tab title="EMEA" %}

```powershell
Connect-MicrosoftTeams

$RA = Get-CsOnlineApplicationInstance | where {$_.applicationid -eq "bbe41b28-a679-4d11-86e7-00afa56d15d7"}
if ($RA){
    Write-Host "Getting Teams recording policies..."
    $TCRPS = Get-CsTeamsComplianceRecordingPolicy | Where {$_.ComplianceRecordingApplications.Id -eq $RA.ObjectId}
    if ($TCRPS){
        Foreach ($TCRP in $TCRPS){
            if ($TCRP.ComplianceRecordingApplications.Count -eq 1){
                Write-Host "Removing Landis Teams recording policy from users..."
                Get-CsOnlineUser | where {$_.TeamsComplianceRecordingPolicy -eq ($TCRP.Identity.Split(":"))[1]} | Grant-CsTeamsComplianceRecordingPolicy -PolicyName $null
                $groups = Get-CsGroupPolicyAssignment | Where-Object {$_.PolicyType -like "TeamsComplianceRecordingPolicy" -and $_.PolicyName -eq ($TCRP.Identity.Split(":"))[1]}
                    if ($groups){
                        Foreach ($group in $groups){
                        Grant-CsTeamsComplianceRecordingPolicy -Group $group.groupid -PolicyName $null
                        }
                    }
                Write-Host "Removing Landis recording policy..."
                Remove-CsTeamsComplianceRecordingPolicy -Identity $TCRP.Identity
            }
            if ($TCRP.ComplianceRecordingApplications.Count -ge 2){
                Write-Host "Removing Landis recording application from Teams recording policy..."
                $removedLCCRA = $tcrp.ComplianceRecordingApplications | Where-Object {$_.Id -ne $ra.ObjectId}
                Set-CsTeamsComplianceRecordingPolicy $TCRP.Identity -ComplianceRecordingApplications @($removedLCCRA)
            }
            Write-Host "Completed! Please delete the Landis recording user account" $ra.UserPrincipalName
        }
    }
}
```

{% endtab %}
{% endtabs %}

2. Delete the user account that was listed in the output of the above script.

**Contact Landis Technologies Customer Support To Delete Organization**

1. Open a ticket at **"**[**https://support.landis.cloud**](https://support.landis.cloud)**"**
2. Request to delete your contact center organization. Include your Landis Contact Center organization name (retrieved above) and your Microsoft 365 tenant ID.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cc.docs.landis.cloud/appendix/remove-contact-center.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
