Ticker

6/recent/ticker-posts

Advertisement

How to Delete Microsoft Teams Cache for All Users





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

You can easily delete the Microsoft teams cache using following PowerShell command
Get-ChildItem "C:\Users\*\AppData\Roaming\Microsoft\Teams\*" -directory | Where name -in ('application cache','blob storage','databases','GPUcache','IndexedDB','Local Storage','tmp') | ForEach{Remove-Item $_.FullName -Recurse -Force -WhatIf}

The end of the one-liner calls a -WhatIf which can be removed to enforce deletion.

How to clear your Microsoft Teams cache manually


1. Quit Microsoft Teams.

2. Cut and paste the following location into File Explorer: %appdata%\Microsoft\Teams

3. Delete the contents of the entire folder.


4. Restart Microsoft Teams. 

Post a Comment

0 Comments