> For the complete documentation index, see [llms.txt](https://cc.docs.landis.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cc.docs.landis.cloud/appendix/remove-contact-center.md).

# 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** and **Landis Chat**
4. There will be **up to 7** Landis Contact Center application registrations
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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
