We have disabled IE11 in our business as per Microsoft's guidelines so we are having to use the following command to reset IE information.
RunDll32.exe InetCpl.cpl,ResetIEtoDefaults
We have found that this appears to work for the numerous Onedrive and Teams errors we have had lately. Together with revoking logon sessions from the admin console.
What I find so frustrating is that there appear to still be legacy authentication happening with both OneDrive and Teams that are reliant on IE cache even though they themselves have sunset IE.
Please Microsoft sort your office suite out and make it consistent, this is driving us nuts. We are having to delete profiles, reset IE 11 settings and revoke logons on a weekly basis for an ever growing group of our roaming laptop users now. Our workaround document now extends to 2 pages to get them back online.