New Teams - How do you remove users from the "Pick an account" / Login screen?

Anonymous
2023-12-01T12:57:48+00:00

While testing "New Teams" I have noticed that the "Pick an account" / Login screen shows the previous users that have logged in, even if they have clicked "sign out".

When clicking on those users, it also logs them in without asking for a password.

After reading other posts here, I have tried deleting the cache here: %LocalAppData%\Packages\MSTeams_8wekyb3d8bbwe

And also deleting the data in this folder: %LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy

Doing this has stopped the accounts from being logged in without a password, but the accounts still appear on the "Pick an account" / Login screen.

They do not show in classic teams or any other application and there are no additional accounts in the "Access Work and School" windows setting page.

I have also tried to fully remove and reinstall Teams but the accounts are still visible.

Does anyone have a solution for this?

Thanks

EDIT:

I have found a possible solution:

Delete:
%LocalAppData%\Packages\MSTeams_8wekyb3d8bbwe
%LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
%LocalAppData%\Microsoft\OneAuth
%LocalAppData%\Microsoft\TokenBroker
%LocalAppData%\Microsoft\IdentityCache

Then restart the PC.

This will sign out all Microsoft products but does remove the users from the login list and removed their login details, meaning a password is required to login to Teams.

Microsoft Teams | Microsoft Teams for education | Sign up and Sign in | Switch between accounts

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

99 answers

Sort by: Newest
  1. Anonymous
    2025-04-15T12:00:37+00:00

    Looks like nowadays in Microsoft works only diletants... Why users must run some scripts to delete ridiculous cache from their PC.

    One and only solution is: "Log out and forget"

    Privacy is all!

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-03-17T19:21:40+00:00

    How do I fix the issue on Macbook Pro?

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-03-17T17:47:50+00:00

    Ablyth wrote:

    I have found a possible solution:
    Delete:
    %LocalAppData%\Packages\MSTeams_8wekyb3d8bbwe
    %LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
    %LocalAppData%\Microsoft\OneAuth
    %LocalAppData%\Microsoft\TokenBroker
    %LocalAppData%\Microsoft\IdentityCache
    Then restart the PC.

    This worked. Thank you very much.

    If you want to script this, you can use the following:

    1. Texteditor -> New -> Save as "Del_MS_Acc_Cache.cmd".
    2. Input the following code and save again:

    rd /S /Q "%LocalAppData%\Packages\MSTeams_8wekyb3d8bbwe"
    rd /S /Q "%LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy"
    rd /S /Q "%LocalAppData%\Microsoft\OneAuth"
    rd /S /Q "%LocalAppData%\Microsoft\TokenBroker"
    rd /S /Q "%LocalAppData%\Microsoft\IdentityCache"
    echo off

    1. Stop Microsoft related services e.g. Teams, OneDrive in the TaskManager.
    2. Right-click on your CMD and run it with Admin-rights.
    3. Restart.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2025-03-17T17:38:12+00:00

    The following steps worked for me. Similar to the solutions above but fewer files removed:

    1. Within Teams, sign out, and exit the program.
    2. Go to Access Work or School and verify the user account is not logged in. (Unless they are supposed to be)
    3. Remove or rename the following file: %localappdata%\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\previous_session_data.json

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2025-02-16T12:26:29+00:00

    Only the %LocalAppData% solution works. The other answers are irrelevant (seem too obvious but they do not handle the issue). Thank you ablyth.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments