Removing existing teams or channels from Microsoft Teams when no longer needed
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.
- Close Teams completely (ensure it is not running in the Taskbar).
- Press
Win + Rto open the Run dialog. - Type
%appdata%\Microsoft\Teamsand press Enter. - Delete all files and folders in this directory. (Note: This will not delete your chats, only temporary local files).
- 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=ormsteamsrelated 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.