How to clear the cache in Microsoft Teams on any device to free up space Mac and  Windows
Image Source: Shutterstock.com
Aug 13, 2022 7:08 AM

How to clear the cache in Microsoft Teams on any device to free up space Mac and Windows

External Blog Post

The memory consumed by Teams on the disk becomes larger and larger over time. Data is cached here for faster retrieval. If the memory becomes too large, this could lead to problems. Insider explains how to get rid of this data.

Sometimes there is a need to delete Microsoft Teams cache to quicken the adoption of an in-band policy change or simply troubleshoot an issue. The challenge here is that the cache for Microsoft Teams is in multiple directories. This can be done manually but would result in a slow and tedious process. Again, we turn to PowerShell to automate this process and this time it's a one-liner that addresses this opportunity.

Power Shell for Windows

PowerShell Basics: How to Delete Microsoft Teams Cache for All Users

https://techcommunity.microsoft.com/t5/itops-talk-blog/powershell-basics-how-to-delete-microsoft-teams-cache-for-all/ba-p/1519118

Download Script on Gist

https://gist.githubusercontent.com/rheid/955c39bdc5c842942ad37eb95527d6b8/raw/a68ced7a9db8c1d3fc8652f8cc466d36c2f9baff/cleanTeamsCache.ps1

Clean Teams Cache on Mac

How to clear Microsoft Teams' cache on your Mac

On a Mac, most cached files are kept inside of the "Application Support" folder.

  1. Open a Finder window and click Go at the top of the screen, and then Go to Folder…
  2. In the search box that opens, type and submit /Library/Application Support/Microsoft/Teams.
  3. In the folder that opens, find and delete the Cache, Code Cache, and GPUCache. You can delete them by right-clicking, or by dragging them to the Trash icon in your dock.