Removing an obsolete orphaned account

Mike Grinshpon 0 Reputation points
2026-07-22T17:09:42.5+00:00

My Windows 11 Home PC was previously Workplace Joined to my organization (I retired recently). I removed the Workplace Join (confirmed by dsregcmd /status showing WorkplaceJoined: NO) and deleted the MS-Organization-Access certificate. However, the old work account still appears in Settings → Accounts → Email & accounts and in the Microsoft Teams account picker. The account no longer exists

Moved from: Windows for home | Windows 11 | Accounts, profiles, and login

Microsoft 365 and Office | Subscription, account, billing | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Huy-K 13,990 Reputation points Microsoft External Staff Moderator
    2026-07-23T00:59:30.79+00:00

    Dear @Mike Grinshpon,

    Based on your description, kindly try these steps:

    1> Confirm it is not still connected under Access work or school

    Do not rely only on Email & accounts.

    In Start Menu, open Settings > Accounts > Access work or school.

    If the retired work account appears, select it and choose Disconnect.

    Restart the PC.

    2> Remove the account from Email & accounts

    After restart:

    Go to Settings > Accounts > Email & accounts.

    Under Accounts used by other apps, select the old work account.

    If Remove is available, select Remove.

    Restart again.

    3> Sign out of Microsoft Teams

    Open Microsoft Teams.

    Select your profile picture.

    Select Sign out.

    Close Teams completely.

    Reopen Teams and sign in only with the account you want to use.

    If Teams still shows the old organization, please check whether Settings > Accounts and orgs has an option to leave the old organization. If the old account no longer exists, this option may not always be available.

    4> Clear cached Teams and Windows identity data

    If the obsolete account still appears, please clear the local cached identity data.

    Quit Teams completely.

    Open Task Manager.

    End any remaining Teams or ms-teams.exe processes.

    Open File Explorer.

    Paste each of the following paths one at a time into the address bar.

    Delete the folder if it exists:

    %LocalAppData%\Packages\MSTeams_8wekyb3d8bbwe

    %LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy

    %LocalAppData%\Microsoft\OneAuth

    %LocalAppData%\Microsoft\TokenBroker

    %LocalAppData%\Microsoft\IdentityCache

    Restart the PC.

    Open Teams again and sign in with the correct account.

    Please be aware that this may sign you out of other Microsoft apps on the device, such as Office, OneDrive, Outlook, or Edge. You may need to sign back in afterward.

    5> Remove old saved credentials

    In Start Menu, open Credential Manager.

    Check both Web Credentials and Windows Credentials.

    Remove any entries related to the old work account, the former organization, Teams, Office, OneAuth, ADAL, or MicrosoftOffice.

    Restart the PC.

    6> Check Office identity entries, if Office apps also show the old account

    If the old account also appears in Word, Excel, Outlook, or other Microsoft 365 apps, please proceed carefully with the following steps:

    Press Win + R > run regedit

    Before making changes, select File > Export to back up the registry.

    Go to this location:

    HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities

    Review each subkey and check whether it clearly references the old work email address.

    If a subkey clearly belongs to the obsolete work account, delete only that specific subkey.

    Restart the PC.

    I hope the information shared helps point you in the right direction. Please try the steps above and let me know if they work. If not, we can continue working together to narrow this down.

    The first response may not always resolve the issue right away, but with your help and more details, we can work toward a solution.

    As a moderator, I do not have the tools to investigate your specific account directly, as this is a support forum between users. Moderators and collaborators, including external Microsoft employees, may not directly intervene in the functionality of Microsoft products or access internal systems. Our role is limited to providing technical guidance on reported problems, requests, or ideas. However, I will do my best to guide you as clearly as possible.


    If the answer is helpful, please click "Yes" 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.

    Was this answer helpful?


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.