private static void CleanupIdentityProviders(ServiceManagementWrapper acsWrapper) { Console.Write("Cleaning up identity providers..."); var ips = acsWrapper.RetrieveIdentityProviders(); foreach (var ip in ips) { if (ip.DisplayName != SocialIdentityProviders.WindowsLiveId.DisplayName) { acsWrapper.RemoveIssuer(ip.DisplayName); } } Console.WriteLine("done"); }