You could check if the accounts were connected in the windows settings - accounts page and removed Teams items from the Windows Credentials Manager.
If the above is not working, then try to follow these steps:
- Check if process ms-teams.exe is still running and kill it.
- Rename %LocalAppData%\Microsoft\OneAuth\accounts or remove the content.
- Start Teams, the primary account will automatically be recreated.
In Windows11, you could also try to these steps:
Start >Settings >Apps (on the left) >Installed apps (on the right)> search for Teams; click the 3 dots next to "Microsoft Teams (work or school)"; select Advanced options
Scroll down to the Reset section; select the second Reset button ("If this app isn't working right, reset it. The app's data will be deleted").
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.