Microsoft’s Azure AD Connect is a tool that allows you to sync Active Directory credentials from local domain (on-prem) environments with Azure. This is not a common occurrence, there are use cases that you need to remove Azure AD Connect from the environment. This can be achieved in a few steps and requires removal from the local domain environment and deactivating the service in the Azure Portal.
Step 1. Remove Azure AD Connect service in Azure Portal.
It may take 72 hours for completion of the deactivation. The time depends on the total objects in your Azure AD.
PowerShell commands to run:
Install-Module MSOnline
Step 2. Uninstall Azure AD Connect application (and services) from your local domain environment using the software/programs Control Panel.