File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ A cleanup script for macOS that runs the following tasks:
24
24
* Remove Minecraft logs and cache
25
25
* Remove Steam logs and cache
26
26
* Remove Lunar Client logs and cache
27
+ * Remove Microsoft Teams logs and cache
27
28
* Remove Wget logs and hosts
28
29
* Clear Bash/ZSH history
29
30
* Removes Cacher logs
Original file line number Diff line number Diff line change @@ -316,6 +316,24 @@ if type "pod" &>/dev/null; then
316
316
pod cache clean --all & > /dev/null
317
317
fi
318
318
319
+ # Deletes all Microsoft Teams Caches and resets it to default - can fix also some performance issues
320
+ # -Astro
321
+ if [ -d ~ /Library/Application\ Support/Microsoft/Teams ]; then
322
+ # msg 'Deleting Microsoft Teams logs and caches...'
323
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/IndexedDB & > /dev/null
324
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/Cache & > /dev/null
325
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/Application\ Cache & > /dev/null
326
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/Code\ Cache & > /dev/null
327
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/blob_storage & > /dev/null
328
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/databases & > /dev/null
329
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/gpucache & > /dev/null
330
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/Local\ Storage & > /dev/null
331
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/tmp & > /dev/null
332
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/* logs* .txt & > /dev/null
333
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/watchdog & > /dev/null
334
+ rm -rfv ~ /Library/Application\ Support/Microsoft/Teams/* watchdog* .json & > /dev/null
335
+ fi
336
+
319
337
msg ' Cleaning up DNS cache...'
320
338
sudo dscacheutil -flushcache & > /dev/null
321
339
sudo killall -HUP mDNSResponder & > /dev/null
You can’t perform that action at this time.
0 commit comments