Hi, Jechava#302
Good day!
Thank you for posting to Microsoft Community. We are happy to help you.
According to your description and screenshot, the issue of your concern that you cannot remove both accounts on your Teams for iOS.
I believe this error is caused by Microsoft Intune policy, which is set up by your Company Administrator. For this scenario, please be kindly to contact your company IT Admin and navigate into Microsoft End point admin center and remove the accounts on your device. Please understand that the Administrator of your organization has the highest authority that able to manager all user accounts of your organization's domain.
Thanks for your time and your understanding would be highly appreciated.
Sincerely,
Alex | Microsoft Community Moderator.