Skip to main content

Clear Cache in Microsoft Teams

If you find that your Microsoft Teams instance is running slowly, displaying blank tabs, or refuses to launch Teams Manager/External User Manager, there's a high likelihood that clearing your cache will resolve the problem.

​

This article will show you exactly how to clear the cache for Microsoft Teams, both on Windows and Mac OS.

​

💡 Clearing the cache in Microsoft Teams will prompt you to log in again, so make sure you've got your login credentials at hand before proceeding. It'll also likely reset your device preferences (mic/camera).

​

​

🪟 Clearing Cache on Windows


There are two ways to clear the Teams Cache on Windows. It can be done manually or with a PowerShell script.

​

1. Manual Method

​

​

  1. Right-click on the Teams icon in your taskbar and select Quit.
    ​

  2. Once the application is closed, press the Windows Key and R simultaneously to open the Run window.
    ​

  3. Copy and paste the path %userprofile%\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams into the Run window and press Enter.
    ​

  4. Select all of the files in the folder that opens and delete them.
    ​

  5. Restart Microsoft Teams.

​

2. PowerShell Method

​

The PowerShell Method performs the exact same procedure automatically. All you'll need to do is open PowerShell as an Administrator, paste in the following command, and press Enter.

​

$clearCache = Read-Host "Delete the Teams Cache (Y/N)?"; if ($clearCache.ToUpper() -eq "Y") { Write-Host "Closing Teams..." -ForegroundColor Cyan; try { if (Get-Process -ProcessName ms-teams -ErrorAction SilentlyContinue) { Stop-Process -Name ms-teams -Force; Start-Sleep -Seconds 3; Write-Host "Teams has been closed successfully." -ForegroundColor Green } else { Write-Host "Teams is already closed." -ForegroundColor Yellow } } catch { Write-Warning $_ }; Write-Host "Clearing Teams cache..." -ForegroundColor Cyan; try { Remove-Item -Path "$env:USERPROFILE\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\*" -Recurse -Force -Confirm:$false; Write-Host "Teams cache deleted successfully." -ForegroundColor Green } catch { Write-Warning $_ }; Write-Host "Restarting Teams..." -ForegroundColor Cyan; Start-Process "explorer.exe" "shell:AppsFolder\MSTeams_8wekyb3d8bbwe!MSTeams" }

​

Type Y and press Enter when the script asks you to confirm. It'll close Teams, delete the cache, and start Teams again on its own, so you don't need to restart it yourself.

​

​

🍎 Clearing Cache on Mac OS


On Mac OS, you'll get the same exact outcome by running a couple of Terminal Commands.

​

  1. Right-click the Teams icon in the Dock and select Quit, or press ⌘ and Q simultaneously.
    ​

  2. Navigate to Finder > Applications > Utilities > Terminal.
    ​

  3. Copy and paste the command rm -rf ~/Library/Group\ Containers/UBF8T346G9.com.microsoft.teams into the Terminal and press Enter.
    ​

  4. Now copy and paste the command rm -rf ~/Library/Containers/com.microsoft.teams2 and press Enter again.
    ​

  5. Restart Microsoft Teams.

​

​

⛑️ Need more help?


Get further assistance with External User Manager through our support chat widget within the app, or reach out to us at [email protected]

Did this answer your question?