Dsregcmd /status" will tell you the devices status in Azure AD and even your local domain.
Open PowerShell as administrator and type:
dsregcmd /status
To remove an Azure AD account without affecting the local profile:
Remove-AzureADUser -ObjectId "<UserObjectId>"
Replace <UserObjectId> with the specific user’s Object ID that you want to remove.