Skip to content

Commit

Permalink
Merge pull request #89 from jrodan/master
Browse files Browse the repository at this point in the history
added microsoft teams
  • Loading branch information
fwartner authored Aug 17, 2021
2 parents ac06a1b + ff5be5b commit 9d0a68f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ A cleanup script for macOS that runs the following tasks:
* Remove Minecraft logs and cache
* Remove Steam logs and cache
* Remove Lunar Client logs and cache
* Remove Microsoft Teams logs and cache
* Remove Wget logs and hosts
* Clear Bash/ZSH history
* Removes Cacher logs
Expand Down
18 changes: 18 additions & 0 deletions mac-cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,24 @@ if type "pod" &>/dev/null; then
pod cache clean --all &>/dev/null
fi

# Deletes all Microsoft Teams Caches and resets it to default - can fix also some performance issues
# -Astro
if [ -d ~/Library/Application\ Support/Microsoft/Teams ]; then
# msg 'Deleting Microsoft Teams logs and caches...'
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/IndexedDB &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/Cache &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/Application\ Cache &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/Code\ Cache &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/blob_storage &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/databases &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/gpucache &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/Local\ Storage &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/tmp &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/*logs*.txt &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/watchdog &>/dev/null
rm -rfv ~/Library/Application\ Support/Microsoft/Teams/*watchdog*.json &>/dev/null
fi

msg 'Cleaning up DNS cache...'
sudo dscacheutil -flushcache &>/dev/null
sudo killall -HUP mDNSResponder &>/dev/null
Expand Down

0 comments on commit 9d0a68f

Please sign in to comment.