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.
PowerShell Basics: How to Delete Microsoft Teams Cache for All Users
Download Script on Gist
How to clear Microsoft Teams' cache on your Mac
On a Mac, most cached files are kept inside of the "Application Support" folder.