Home » Blog » How to Clear the Microsoft Teams Cache

How to Clear the Microsoft Teams Cache

How to clear the Microsoft Teams cache

For some issues, it can be helpful to clear the MS Teams cache. For example, it is useful to empty the Microsoft Teams cache when applications or chat issues occur in the native Teams app that cannot be reproduced in the Teams browser app – an indication that the cause may be in the native app cache.

A common error that can often be fixed by clearing the cache in Microsoft Teams: when a static tab does not display any content, but loads an empty page.

Sporadically, problems with Teams’ telephony feature can also be solved by deleting the Microsoft Teams cache.

Unfortunately, Microsoft has not yet implemented a user-friendly way to clear the cache by the click of a button.

Delete content manually from subfolders

One way to empty the Teams cache is to go to the [user]\%appdata%\Microsoft\teams folder in Windows Explorer and delete the contents in eight of the subfolders. (You need to quit Teams before doing this.) These are the subfolders you need to empty:

  • application cache
  • blob_storage
  • databases
  • GPUcache
  • IndexedDB
  • local storage
  • tmp
  • cache

Delete Teams cache with a PowerShell script

Another easier method is to use a PowerShell script instead of navigating to all the cache folders individually and deleting the contents there.

Simply open the PowerShell app (installed by default in current Windows versions), copy and paste the following PowerShell script, press Enter and then restart your computer.

(The script will automatically quit and re-start Microsoft Teams for you).

Write-Host "Microsoft Teams will be quit now in order to clear the cache."
try{
Get-Process -ProcessName Teams | Stop-Process -Force
Start-Sleep -Seconds 5
Write-Host "Microsoft Teams has been successfully quit."
}
catch{
echo $_
}
# The cache is now being cleared.
try{
Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\application cache\cache" | Remove-Item
Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\blob_storage" | Remove-Item
Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\databases" | Remove-Item
Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\cache" | Remove-Item
Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\gpucache" | Remove-Item
Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\Indexeddb" | Remove-Item
Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\Local Storage" | Remove-Item
Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\tmp" | Remove-Item
 
}
catch{
echo $_
}
 
write-host "The Microsoft Teams cache has been successfully cleared."

For more options to keep control of Microsoft Teams, have a look at our Teams Manager app – your powerful governance tool for MS Teams with a request and approval process for new teams, lifecycle management, naming convention, governance policies and more.

Comments

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.