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
after checking to test it works, even this method doesn't work.
No method works to remove your profile from the computer or microsoft edge as of dec 25 2025, they may have worked 2 years ago but not as of today. or if you enrolled in extended updates
you cannot even delete the folder internet explorer.
it worked for few times and the email pops up again. windows some how keeps a file saved so even you remove it somehow finds the user data. It's has to do with enrolling your windows for 'extended' support that requires you to have an outlook email. your operating system is tied to that email when you enrol. there is no need to enroll.
so none of the methods work which is what microsoft wants so people have to upgrade to windows 11 or use firefox or another browser.
I've tried all the complex suggestion and only way that works is via the 'control panel'. Other suggestions like going packages or application data etc. and there is no files to delete and is manual method doesn't work.
This is the only method that works and most logical and a lot faster and easier.
Clear Cached Credentials in web credentials method works:
control, and press Enter to open the Control Panel.Control Panel and remove credentials.
All other methods don't work and save yourself an hour trying to figure it out.
This method works by going to control panels and use the 'credential manager' and delete microsoft edge profile. under web settings. Graphic user interface is lot easier than trying to find the file in file system or regedit.
Do not delete any of the windows 'credentials'
This is as of December 23, 2025. It seems when you enroll your computer to microsoft extended security updates for windows 10 it needs your email account for some reason and has your email credentials locked into web credentials. The other old method was to delete the profile in web browser, but still the email is still on the web browser even reinstalling it is still in the web browser as it is the web credentials. or token.
Conclusion: this method works by going to CONTROL Panel under USER ACCOUNTS.
You may still need to go to settings in local computer. to fully remove it. the method below used to work but no longer works. so you may need to go to control panel and do two steps.
Remove Account via Windows Settings:
Remove Account via Windows Settings:
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.