How to remove accounts from "Add another account" screen in Teams?

Michal Z 20 Reputation points
2025-07-28T09:12:54.8766667+00:00

I want to remove old accounts from "Add another account" screen.
I've tried already,

  • removing ~/Library entries related to Microsoft.
  • remove entries in KeyChain access.

Still old accounts are appearing.

Can anyone provide a script which solves that problem?

Microsoft Teams | Microsoft Teams for business | Sign up and Sign in | Switch between accounts
0 comments No comments

Answer accepted by question author
Anonymous
2025-07-28T10:39:40.4666667+00:00

Hello @Michal Z Thank you for reaching out and providing details about the issue you're experiencing with Microsoft Teams on macOS.

This behavior is often caused by Teams caching identity and configuration data in multiple locations across macOS. To fully reset Teams and remove all traces of old accounts, I recommend following the steps below: 

 

Step 1: Sign Out of All Microsoft Applications 

Before proceeding, please sign out of all Microsoft apps on your Mac, including Outlook, OneDrive, Word, Excel, and PowerPoint. These apps may sync identity data across services and reintroduce cached credentials. 

 

Step 2: Fully Quit Microsoft Teams 

Ensure Teams is not running in the background. Right-click the Teams icon in your Dock and select Quit

 

Step 3: Clear Keychain Entries 

  1. Open Keychain Access (found in /Applications/Utilities or via Spotlight). 
  2. In the search bar in the top-right corner of the Keychain Access window, search for and delete all entries that contain the following keywords. Search for them one by one: 
    1. Microsoft Teams 
    2. ADAL (Microsoft Authentication Library) 
    3. Office 
  3. Right-click each entry and choose Delete "[entry name]"

 

Step 4: Delete Teams Cache and Configuration Files 

  1. Open Finder
  2. Click Go in the menu bar and select Go to Folder…
  3. You will need to delete the contents of a few specific locations. Copy and paste the following paths into the "Go to Folder" box one at a time and press Go:
    1. ~/Library/Application Support/Microsoft/Teams 
    2. ~/Library/Caches/com.microsoft.teams 
    3. ~/Library/Preferences/com.microsoft.teams.plist 
    4. ~/Library/Group Containers/UBF8T346G9.com.microsoft.teams (this folder often contains persistent identity data) 

 

Step 5: Restart Your Mac (Optional but Recommended) 

Restarting ensures all background processes related to Teams and Microsoft identity services are terminated. 

 

Step 6: Relaunch Teams 

Open Microsoft Teams. It should now behave like a fresh installation, prompting you to sign in without showing any previously used accounts. 

 

Optional: Script to Automate Folder Deletion 

If you're comfortable using Terminal, you can run the following commands to automate Step 4. Please be cautious, these commands permanently delete files without moving them to Trash. 

rm -rf "~/Library/Application Support/Microsoft/Teams"
rm -rf "~/Library/Caches/com.microsoft.teams" 
rm -rf "~/Library/Group Containers/UBF8T346G9.com.microsoft.teams"  
rm -f "~/Library/Preferences/com.microsoft.teams.plist"   

After running these commands and clearing the Keychain, the issue should be resolved. 

Please let me know if this solves the problem or if you have any further questions. 


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment”.  

User's image

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?


0 additional answers

Sort by: Most 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.