Managing profiles, sync settings, and sign-in options in Edge on macOS
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to remove old email addresses used to sign in to Edge. This has been a nuisance before but after our company sold a daughter company and we had to migrate our AD it is utterly horrible. I now have two email addresses but now never know which one to use (and actually both are the wrong one). I need to reset my browser and start afresh. And while we are on it I would appreciate if I could make Edge forget old email addresses as well.
This happens on both macOS and Windows 11 and I need to fix both. I have removed everything Microsoft related in ~/Library/Application Support and I have removed everything Microsoft related in Keychain Access (on macOS). But the email addresses keep coming back. Where do they come from?
I had to tag macOS but my question applies to Windows 11 as well.
Please assist. This is driving me nuts!
Managing profiles, sync settings, and sign-in options in Edge on macOS
Hi Martin, thanks for the updated information. It's very helpful as the error code AADSTS50020 actually suggests that this might not be just a local profile cleanup issue. Just to make sure, the PCs you using are entirely personal or corporate linked?
In the latter case, when you sign in to your device with a work account, it becomes registered with your org's Microsoft Entra ID/Azure AD. The "local" data is actually embedded in the operating system of your PC, which Edge and other apps use to repopulate the sign-in list.
If you want, I can give you something to try out, but this is likely a deeper-level issue that cannot be fixed by simple and traditional cleanups. The quickest and most effective path would be what I suggested above - you should consult with your IT dept to try to invalidate all sessions and refresh tokens from the Entra ID admin center. If they're unable (or don't know how) to do it, the IT needs to raise ticket to Microsoft support team.
I'm sorry for not being a greater help in this situation, but this issue seems to involve your organization's device management, which would require direct IT support to remove. This is a standard post-migration procedure they should be familiar with. Thanks for your time.
Below are the things I remove on my local disk. I have a more extreme script that removes everything Microsoft related, not only Edge related. But it really should be enough to remove the first folder. In addition, as I wrote, I remove anything related to Microsoft, Edge, OneAuth etc from Keychain.
rm -rf ~/Library/Application\ Support/Microsoft\ Edge
rm -rf ~/Library/Caches/Microsoft\ Edge
rm -rf ~/Library/Caches/com.microsoft.edgemac
rm -rf ~/Library/Preferences/com.microsoft.edgemac.plist
rm -rf ~/Library/Saved\ Application\ State/com.microsoft.edgemac.savedState
rm -rf ~/Library/Containers/com.microsoft.edgemac
And to extend on my original posting we recently migrated all corporate users to a new Entra domain but everyone retains the same email addresses. My main issue is that, while I see two instances of the "correct" email address when signing into Edge I get the following error showing there is a link to the old tenant that I can't seem to remove:
AADSTS50020: User account '******@XYZ.se' from identity provider 'https://sts.windows.net/<UUID>/' does not exist in tenant 'OLDCOMPANY Azure AD' and cannot access the application '<UUID>' (Microsoft Edge) in that tenant. This shows that both entries in the dropdown are incorrect (they carry a reference to our old tenant). Also, I can't add a new account with the same email address as it results in the same error.
Thanks for your answer but this is the same information that can be found online. It is incomplete and does not resolve the issue at all!
I have deleted everything Microsoft related (that I could find at least) under ~/Library/Application Support. I have deleted caches, state information, Microsoft group containers, Microsoft Identity Broker storage and anything else that appeared to be Microsoft related. I have searched for and removed information in Keychain related to Edge, Microsoft, OneAuth etc. I have logged out from every Microsoft application and uninstalled them (Teams, OneDrive, Edge, Word, etc) and then installed only Edge. I have even logged file reads and opens while running Edge and parsed the output to try to identify what files Edge are reading (~/Library/Application Support and Keychain figure prominently). I have also tested this on other computers (running both Windows and macOS) and notice that I get old accounts there as well. However (and crucially), the lists are not the same and it feels pretty clear that the problem is local.
So my question remains: Where does Edge get its list of email addresses from and what would be a fail-proof way of clearing that information so that I can start afresh?
I guess that I could solve the problem by wiping my Macbook and starting from scratch. Or create a new local user account. But I don't want to do that. And it really shouldn't be necessary.
This function is horribly broken and needs to be fixed by Microsoft ASAP!
Hi Martin Bergek,
Welcome to Microsoft Q&A!
I understand how frustrating this can be, especially after an AD migration. Edge stores sign-in information in multiple places, so removing old email addresses requires clearing both browser profiles and account cache. Please try all of the suggestions below in order:
1 - Sign out of all profiles and clear user data
%LOCALAPPDATA%\Microsoft\Edge\User DataUser Data folder (or simply delete that folder)2 - Remove cached credentials
control > press Enter to open Control PanelMicrosoftAccount, Live.com, Office, Edge3 - Remove old work/school accounts in all places below:
4 - Clear all Microsoft identity data:
%LocalAppData%\Microsoft\Edge%LocalAppData%\Microsoft\IdentityCache%LocalAppData%\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe%AppData%\Microsoft\Edgeregedit to open Registry EditorComputer\HKEY_CURRENT_USER\Software\Microsoft\IdentityCRLComputer\HKEY_CURRENT_USER\Software\Microsoft\Office\IdentityDisclaimer: Generally, modifying registry subkeys or work group is intended for advanced users, administrators, and IT Professionals. It can help fix some problems, however, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For further protection, first check out How to back up and restore the registry in Windows - Microsoft Support
Application Support, also delete these folders:
~/Library/Application Support/Microsoft/Edge~/Library/Caches/Microsoft/Edge~/Library/Caches/com.microsoft.edgemac~/Library/Containers/com.microsoft.edgemac~/Library/Group Containers/UBF8T346G9.com.microsoft.identity*~/Library/Group Containers/UBF8T346G9.OfficeIt's also worth noting that if your organization uses Azure AD or Microsoft 365, old addresses may reappear if they’re still linked to your account. You may need to remove them from your Microsoft account:
Edge in Recent activities box:
If the account still persists after trying everything, consider contacting your IT and ask them to clear your Azure AD/Entra ID tokens. The data might have been linked to your device.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
To remove old email addresses associated with your Microsoft Edge profile on both Windows 11 and macOS, you can follow these steps:
By following these steps, you should be able to effectively remove old email addresses from Microsoft Edge on both operating systems.