How to clear the account list in the Web Account Manager list of Accounts displayed by WAM Broker

Michael 81 Reputation points
2024-05-25T18:43:22.4933333+00:00

I have a WPF desktop app that accesses an Azure WebAPI. It uses the MSAL library and when authenticating uses the WAM broker. When the list of accounts is displayed, there is an account of someone that used the computer once when I was logged on to the operating system. I can't seem to delete that account with PublicClientApplication.RemoveAsync(). I have tried deleting the token cache file. I have looked in the Credential Manager. I just can't seem to delete this account and stop it from showing up in the account list of WAM. It must be stored somewhere but I can't find it.

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
643 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,563 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,298 questions
{count} votes