Skip to main content

Trying to have a chat recently, and Microsoft Teams would not open on MAC OS.  Sometimes it would open without issue.  But today, no play.

The email comes through with no issue.  Opens in Safari with no issue.  But the link to open in Microsoft Teams, goes nowhere.

Below are the progressive steps that I took to resolve this issue (note that this could take multiple solutions - let's see):

 

Solution 1: delete cache

How to delete the cache of Microsoft Teams on macOS?

The first action, go to the Caches directory

cd ~/Library/Caches

When you list (ls -l) your directory, down the page you will find something similar to 

... //
drwxr-xr-x    5 andrewsfletcher  dev      160 17 Apr  2021 com.microsoft.VSCode
drwxr-xr-x    5 andrewsfletcher  dev      160 18 Jun 10:22 com.microsoft.VSCode.ShipIt
drwxr-xr-x    8 andrewsfletcher  dev      256 15 Jun  2021 com.microsoft.teams
drwx------@  10 andrewsfletcher  dev      320  8 Nov  2021 com.operasoftware.Opera
// ...

Remove com.microsoft.teams

rm -rf com.microsoft.teams

Next, go to the Microsoft Teams application directory

cd ~/Library/Application\ Support/Microsoft/Teams

Remove the following files

rm desktop-config.json
rm storage.json
rm Network\ Persistent\ State

Finally, clear out the following directories in this directory

rm -rf *Cache*
rm -rf blob_storage
rm -rf databases
rm -rf IndexedDB
rm -rf Local\ Storage
rm -rf tmp

 

What are all the steps in one block

cd ~/Library/Caches
rm -rf com.microsoft.teams

cd ~/Library/Application\ Support/Microsoft/Teams
rm desktop-config.json
rm storage.json
rm Network\ Persistent\ State
rm -rf *Cache*
rm -rf blob_storage
rm -rf databases
rm -rf IndexedDB
rm -rf Local\ Storage
rm -rf tmp

Now try re-opening your link.

Related articles

Andrew Fletcher13 Feb 2023
brew changing PHP versions on OSX
Installing PHP on OSX and it installed PHP 8.2.x.  However, for my applications I need to run 8.1.x.  How do you switch the current PHP version?   Current version Check the current PHP version by executing the command php -v Response: PHP 8.2.2 (cli) (built: Feb ...
Andrew Fletcher24 May 2022
OSX : Convert a putty .ppk key to a .pem file
How do you generate a .pem file from an existing .ppk key? Is putty on your mac? Check by running the command puttygen -V Which will generate a response similar to  puttygen: Release 0.76 Build platform: 64-bit Unix Compiler: clang 12.0.5 (clang-1205.0.22.9) Source commit:...