Removing a Teams Account

Randy Martin 20 Reputation points
2026-05-08T02:54:39.27+00:00

I need to remove a Teams account for a company that no longer is in business. This account is causing conflicts with other teams sits

Microsoft Teams | Microsoft Teams for business | Teams and channels | Delete a team or channel
0 comments No comments

Answer accepted by question author
Sophie N 18,175 Reputation points Microsoft External Staff Moderator
2026-05-08T03:36:59.4066667+00:00

Dear @Randy Martin,

I understand how frustrating it is when a legacy account from a previous company interferes with your current Microsoft Teams environment. These "stale" credentials often cause authentication loops or "account mismatch" errors because they remain cached in the Windows Identity Manager and the Teams app.

To completely remove the old account and stop the conflicts, please follow these steps:

Step 1: Leave the old organization If the old company appears as an organization, you previously collaborated with, you can remove the association yourself:

  • Go to https://myaccount.microsoft.com and sign in. 
  • Select Organizations (or Manage organizations). 
  • Under Other organizations you collaborate with, find the old company and select Leave. 

If you don’t see “Leave” or you get a message that you can’t leave, that organization has disabled self-service leaving (or your guest account is disabled). In that case, only the tenant admin/privacy contact can remove your account from their directory. 

Note: You cannot leave your home organization yourself; only an admin can remove that account from the tenant.

Please refer to this document: Leave an organization - Microsoft Entra External ID | Microsoft Learn

Step 2: Disconnect the Account from Windows Settings

This is the most critical step to stop Windows from attempting to use the old credentials for Single Sign-On (SSO).

  • Open Windows Settings (Press Win + I).
  • Go to Accounts > Access work or school.
  • Locate the email address of the company that is no longer in business.
  • Select it and click Disconnect. Confirm any prompts that appear.

Step 3: Clear the Microsoft Teams Cache

Even after disconnecting the account from Windows, Teams often "remembers" the old tenant. Clearing the cache forces the app to look for fresh credentials.

  1. Close Teams completely (ensure it is not running in the Taskbar).
  2. Press Win + R to open the Run dialog.
  3. Type %appdata%\Microsoft\Teams and press Enter.
  4. Delete all files and folders in this directory. (Note: This will not delete your chats, only temporary local files).
  5. Restart Teams and sign in with your active account.

Please refer to this document: Clear the Teams client cache - Microsoft Teams | Microsoft Learn

Step 4: Remove Credentials from Credential Manager

If the account still appears, it may be saved in the Windows Vault.

  • Type Credential Manager in the Windows Search bar and open it.
  • Select Windows Credentials.
  • Under Generic Credentials, look for any entries containing MicrosoftAccount:user= or msteams related to the old company email.
  • Click the entry and select Remove.

Please refer to this document: Credential Manager in Windows - Microsoft Support

By disconnecting the account from Access work or school and clearing the Teams cache, you effectively remove the identity token that is causing the conflict with your other sites.

For more detailed technical background, you can refer to the official Microsoft documentation on Sign out or remove an account from Microsoft Teams - Microsoft Support

Please understand that, as a moderator, the real-world environment and specific challenges your users face may differ from my test setup. Rest assured that I am always here to help you bridge that gap. We will work closely together to guide you effectively and optimize this process for your issue. If you encounter difficulties or notice a step not working as expected, please do not hesitate to contact me. I am happy to continue learning and working alongside you until we find a suitable solution.
Please let me know if the conflicts persist after following these steps.


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.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Oldest
  1. kagiyama yutaka 5,330 Reputation points
    2026-05-10T06:01:38.3666667+00:00

    I think first open Windows “Work or school account” and remove that old company account—this breaks the leftover tenant link that keeps making Teams fail…and when it still feels stuck, clear the Teams cache once.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

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.