-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfix_ms_teams.sh
executable file
·20 lines (18 loc) · 1.09 KB
/
fix_ms_teams.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
HOME=~
echo "Trying to close MS Teams before clearing cache..."
killall Microsoft Teams
echo "Make sure MS Teams is closed before you continue! Hit ENTER key to continue..."
read
echo "Removing Teams cached files..."
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/blob_storage' &> /dev/null
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/Cache' &> /dev/null
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/databases' &> /dev/null
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/GPUCache' &> /dev/null
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/IndexedDB' &> /dev/null
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/Local Storage' &> /dev/null
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/tmp' &> /dev/null
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/Code Cache' &> /dev/null
sudo rm -r ${HOME}'/Library/Application Support/Microsoft/Teams/Session Storage' &> /dev/null
echo "MS Teams cache cleared. Restarting Teams..."
open '/Applications/Microsoft Teams.app'