Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added microsoft teams #89

Merged
merged 2 commits into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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