Post

Clear Teams Cache

Just run as Administrator a Powershell script

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Write-Host "Stop Teams" -ForegroundColor Yellow
try{
Get-Process -ProcessName Teams | Stop-Process -Force
Start-Sleep -Seconds 5
Write-Host "Teams Stopped" -ForegroundColor Green
}catch{
echo $_
}
Write-Host "Clearing Teams" -ForegroundColor Yellow
try{
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}
Write-Host "Teams Disk Cache Cleaned" -ForegroundColor Green
}catch{
echo $_
}
Write-Host "Cleanup Complete..." -ForegroundColor Green
Start-Process -FilePath $env:LOCALAPPDATA\Microsoft\Teams\current\Teams.exe
This post is licensed under CC BY 4.0 by the author.