Share via

How do I remove old Edge profile email addresses on Windows 11 or macOS?

Martin Bergek 0 Reputation points
2025-12-14T23:57:24.41+00:00

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!

Microsoft Edge | Profile, sync, and sign in | MacOS
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Lychee-Ng 15,480 Reputation points Microsoft External Staff Moderator
    2025-12-22T07:39:55.86+00:00

    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.


  2. Martin Bergek 0 Reputation points
    2025-12-20T18:47:56.1066667+00:00

    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.

    0 comments No comments

  3. Martin Bergek 0 Reputation points
    2025-12-20T12:19:38.2933333+00:00

    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!

    0 comments No comments

  4. Lychee-Ng 15,480 Reputation points Microsoft External Staff Moderator
    2025-12-15T09:31:20.13+00:00

    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:

    On Windows 11

    1 - Sign out of all profiles and clear user data

    • Open Edge > Click your profile icon > Sync > turn OFF all sync options
    • Then sign out and remove all additional profiles > Close Edge.
      • Also sign out of any other apps with that account on your PC
      • E.g. If you previously used it for Office app like Word or Excel.
    • Press Win + R > enter %LOCALAPPDATA%\Microsoft\Edge\User Data
    • Delete everything in User Data folder (or simply delete that folder)
    • Open Settings > Apps > Installed apps > Microsoft Edge:
      • Click the three-dot and select Modify
      • Scroll to the bottom and click Reset

    2 - Remove cached credentials

    • Press Win + R > type control > press Enter to open Control Panel
    • Open Credential Manager and navigate to Windows Credentials
    • Remove your old Microsoft accounts, and all entries related to it
    • As well as those contain MicrosoftAccount, Live.com, Office, Edge

    3 - Remove old work/school accounts in all places below:

    • Open Settings > Accounts > Check Email & accounts
    • Go back to Accounts > Check Access work or school
    • Also check Windows backup section if there's preferences for Edge

    4 - Clear all Microsoft identity data:

    • Completely close Edge then open Run dialog (press Win + R)
    • Navigate to the following folders and delete them all
      • %LocalAppData%\Microsoft\Edge
      • %LocalAppData%\Microsoft\IdentityCache
      • %LocalAppData%\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe
      • %AppData%\Microsoft\Edge
    • Then also in Run dialog, enter regedit to open Registry Editor
    • Navigate to the following keys and also delete them:
      • Computer\HKEY_CURRENT_USER\Software\Microsoft\IdentityCRL
      • Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\Identity

    Disclaimer: 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 

    The situation is harder on macOS, as this system limits what users can change, but we can try:

    • Turn off Edge sync, sign out and remove all profiles (same as #1 for Windows above)
    • Close Edge completely, then beside 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.Office
    • Consider uninstalling Edge completely and reinstall it, then try signing in again.

    It'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:

    • Go to account.microsoft.com and sign in (if possible)
    • Or use myaccount.microsoft.com if it's organization account
    • Go to corresponding Security section > click Sign out everywhere
      • For personal account, it's at the bottom in Manage how I sign in
      • For work/school account, it's below sign-in methods in Security info
    • Open Devices > remove ALL old devices (especially the problematic ones)
    • Open Privacy > Apps and services > Search Edge in Recent activities box:
      • Click the Show more results link below the displayed results
      • Click Clear currently displayed results > Close the dialog
    • Scroll to the bottom, click App access > Remove Microsoft applications (if any)

    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.


  5. Q&A Assist
    2025-12-14T23:57:36.2666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To remove old email addresses associated with your Microsoft Edge profile on both Windows 11 and macOS, you can follow these steps:

    For Windows 11:

    1. Remove Profiles: Open Microsoft Edge, click on the profile icon in the top right corner, and select Manage profile settings. From there, you can remove any profiles that are no longer needed.
    2. Clear Browsing Data: Go to Settings > Privacy, search, and services > Clear browsing data. Choose Choose what to clear and select the data types you want to remove, including saved passwords and autofill form data.
    3. Reset Edge: If you want to start fresh, you can reset Edge by going to Settings > Reset settings > Restore settings to their default values.

    For macOS:

    1. Remove Profiles: Similar to Windows, open Edge, click on the profile icon, and manage your profiles to remove any unnecessary ones.
    2. Clear Browsing Data: Navigate to Settings > Privacy, search, and services > Clear browsing data. Select the appropriate options to clear saved data.
    3. Reset Edge: Resetting Edge can also be done through Settings > Reset settings > Restore settings to their default values.

    Additional Steps:

    • Check Keychain Access: Since you've already removed Microsoft-related items from Keychain Access, ensure that there are no lingering entries that might be causing the email addresses to reappear.
    • Sync Settings: If you are signed into Edge and have sync enabled, the old email addresses may come back from the cloud. You can stop synchronization by going to Settings > Profiles > Sync and toggling off the sync for the data types you want to remove.

    By following these steps, you should be able to effectively remove old email addresses from Microsoft Edge on both operating systems.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.