Clearing the cache is one of the first things a help desk tries when Teams misbehaves on a single machine. It works well for a narrow set of problems, like a blank or half-loaded window, a client stuck on its loading screen, or stale settings on one device while the same account works fine in the browser. Outside that set, it does more harm than good. Microsoft’s own guidance warns against clearing the cache for missing messages, chat history that won’t load, missing teams or channels, or wrong unread counts, because it doesn’t fix them and deletes the diagnostic logs needed to find the cause.

The move to new Teams added another layer. The cache now sits in a different folder and runs under a different process. Clearing the cache safely means knowing which client the user has, clearing it in the right user context, and doing it remotely without pulling anyone out of a call, whether that’s one laptop or every profile on a shared machine.

» Can’t see anything on Teams? Here’s how to fix your Teams camera

Quick fix: clear the new Teams cache with PowerShell

When a user’s new Teams client is blank, stuck loading, or showing stale data and they need it working now, run these commands as the affected user, either locally or through your remote tool. For a fleet, or when you can’t run as the user, use the SYSTEM script in the section below. Don’t use this for missing messages or wrong unread counts. The sections below cover when to collect logs first and how to deal with classic Teams. These steps delete local Teams data, and there’s no undo. If you’re not sure the cache is the cause, collect the logs first (see the section below). To keep a way back, move the contents to a backup folder instead of deleting them.

On Windows, in PowerShell:

  1. Check whether Teams is still running with Get-Process -Name 'ms-teams' -ErrorAction SilentlyContinue. If a process comes back, have the user right-click the Teams icon in the system tray, select Quit, and then run the check again
  2. Set the cache path with $TeamsCache = Join-Path $env:LOCALAPPDATA 'Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams'
  3. Clear the folder’s contents with Get-ChildItem -LiteralPath $TeamsCache -Force | Remove-Item -Recurse -Force
  4. Ask the user to relaunch Teams

On Mac, in Terminal:

  1. Check whether Teams is still running with pgrep -ifl 'Microsoft Teams'. If a process comes back, have the user quit Teams with Command + Q, and then run the check again
  2. Delete the Teams group container with rm -rf "$HOME/Library/Group Containers/UBF8T346G9.com.microsoft.teams"
  3. Delete the Teams app container with rm -rf "$HOME/Library/Containers/com.microsoft.teams2"
  4. Ask the user to relaunch Teams

On either platform, the first start takes longer than usual while Teams rebuilds its cache, and the user may need to sign in again.

Where your technicians spend the time, and where Robin steps in

Below, each stage of clearing the cache by hand sits next to what Robin by Atera does for routine end-user cases with new Teams on Windows.

Stage

By hand

With Robin by Atera

Identify the Teams client

Check for ms-teams.exe or Teams.exe and confirm which cache path applies

Robin identifies the installed application

Clear the cache

Make sure Teams has fully quit, then reset the app or delete the contents of the cache folder

Robin uses the supported repair path, such as a Microsoft Store app reset

Confirm the fix

Relaunch Teams, have the user sign in, and check that the original problem is gone

Robin reports the result and asks the user to verify that the application works

How to clear the Teams cache on Windows and Mac

Clearing the cache is the right fix when the problem is limited to one Teams client on one device. Typical signs are a blank or half-loaded window, a client stuck on its loading screen after an update, or stale settings on one machine while the same account works normally in the browser or on another device. Restarting Teams hasn’t helped, and the evidence points to damaged local data.

Collect the Teams logs first

Microsoft warns that clearing the cache deletes diagnostic logs, so save them before you clear anything if the cause isn’t clear yet.

On Windows, press Ctrl+Alt+Shift+1, or right-click the Teams icon in the system tray and select Collect support files.

On a Mac, press Option+Command+Shift+1, or select Help > Collect support files.

Teams saves the logs to the Downloads folder. Move them to approved support storage, because they can contain user and meeting details.

Delete the new Teams cache folder on Windows

Deleting the cache folder clears the damaged data without resetting the rest of the app, and you know exactly which directory you’ve changed. That makes it the better choice when you want to keep the user’s settings, or when you need a fix you can script and run remotely. The logs decision is the same as for a reset, so make it before you start.

The new Teams cache sits under the user’s local app data at this directory: %LOCALAPPDATA%\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams

Clear the folder in Windows PowerShell 5.1, running it under the affected user’s account so that $env:LOCALAPPDATA points to their profile:

  1. Confirm that Teams has stopped with Get-Process -Name 'ms-teams' -ErrorAction SilentlyContinue. No output means it isn’t running
  2. Set the cache path with $TeamsCache = Join-Path $env:LOCALAPPDATA 'Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams'
  3. Confirm the folder exists with Test-Path -LiteralPath $TeamsCache. If it returns False, check the user’s Teams version and that you’re in the right profile before going further
  4. Check what’s in the folder with Get-ChildItem -LiteralPath $TeamsCache -Force
  5. Delete the contents with Get-ChildItem -LiteralPath $TeamsCache -Force | Remove-Item -Recurse -Force -ErrorAction Stop. This leaves the folder itself and the app package in place
  6. Confirm the folder is empty by running Get-ChildItem -LiteralPath $TeamsCache -Force again. Look into any access-denied or file-in-use errors before you continue

    PowerShell script to clear Teams cache folder
  7. Ask the user to relaunch Teams

Check that the user can sign in, chats and channels load, and the original problem is gone. An empty folder shows that the cleanup worked, not that the app has recovered.

With Atera’s RMM, you can run the same cleanup on any endpoints you need through remote PowerShell execution, selecting the devices or device groups to target instead of connecting to each machine. The script below runs as SYSTEM and clears the new Teams cache for every user profile on the device. It skips any user who has Teams open, so nobody loses a call mid-meeting. If you need to adapt it for your environment, AI Copilot can generate scripts from plain-language descriptions.

The Script:

Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *

# Clear the new Teams cache for every user profile on the device.
# Run as SYSTEM. Skips any user who has Teams open.
$Busy = Get-CimInstance Win32_Process -Filter "Name = 'ms-teams.exe'" |
    Invoke-CimMethod -MethodName GetOwnerSid | Select-Object -ExpandProperty Sid

Get-CimInstance Win32_UserProfile | Where-Object { -not $_.Special } | ForEach-Object {
    $User = Split-Path $_.LocalPath -Leaf
    $Cache = Join-Path $_.LocalPath 'AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams'
    if (-not (Test-Path -LiteralPath $Cache)) { return }
    if ($Busy -contains $_.SID) { Write-Output "DEFERRED: Teams is running for $User"; return }
    try {
        Get-ChildItem -LiteralPath $Cache -Force | Remove-Item -Recurse -Force -ErrorAction Stop
        Write-Output "COMPLETED: Cleared new Teams cache for $User"
    }
    catch { Write-Output "FAILED: $User - $($_.Exception.Message)" }
}
Script copied to clipboard
Clear Teams cache remotely

With Robin by Atera:  Robin can run this cleanup as a pre-approved script when a user reports the problem. Add the script above under Admin > Monitoring and automations > Scripts, then turn on Enable for AI assistants and Enable for Robin, and Robin can run it as a pre-approved script. Turn on Require user confirmation too, so Robin checks with the user before it clears the cache.

Reset new Teams on Windows

Resetting the app through Windows Settings is Microsoft’s documented way to clear the new Teams cache. Use it when you suspect damaged local data and want the supported route, and try Repair first, because it keeps the app’s data.

A reset deletes the app’s local data, so the user loses cached files and temporary client data, locally stored personalization settings, and their signed-in state. Their chats, channel conversations, team memberships, SharePoint and OneDrive files, and organization policies all stay with their Microsoft 365 account.

To repair (and reset if necessary):

  1. Have the user finish any meetings or calls and save their work
  2. Right-click the Teams icon in the system tray and select Quit
  3. Open Settings > Apps > Installed apps
  4. Search for Microsoft Teams
  5. Select the … menu next to Microsoft Teams, then select Advanced options

    Advanced options in installed apps
  6. Under Repair, select Repair
  7. Launch Teams and check whether the problem is gone. If it isn’t, quit Teams again from the system tray before you continue
  8. Back in Advanced options, under Reset, select Reset and confirm

    Reset Teams on Windows
  9. Launch Teams and have the user sign in if prompted

Check that chats and channels load, meetings open, and the original problem is gone. The first start takes longer than usual while Teams rebuilds its cache

Here’s the script you can run remotely:

The Script:

Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *

Get-AppxPackage -Name MSTeams | Reset-AppxPackage
Get-AppxPackage -Name MSTeams | Select-Object Name, Version, Status
Script copied to clipboard

The second command confirms the package is still registered, which is the expected result after a reset. It doesn’t prove that Teams works, so check with the user that it starts and the original problem has cleared. And if you need help coming up with these commands, Atera’s AI Copilot can do it for you.

With Robin: For a routine case, nobody has to remote in and click through Advanced options. Robin identifies the installed application and uses the supported repair path, such as package repair or a Microsoft Store app reset, then reports the result and asks the user to verify that Teams works.

Clear Teams cache on Mac

macOS has no reset option for Teams like the one in Windows Settings, so you clear the cache by deleting the two container folders Microsoft documents for new Teams. Teams recreates them the next time it starts.

In Terminal (running as the affected user) or deployed through Atera’s RMM:

  1. Confirm that Teams has stopped with pgrep -ifl 'Microsoft Teams|MSTeams'. No output means it isn’t running
  2. Confirm both folders exist with ls -ld "$HOME/Library/Group Containers/UBF8T346G9.com.microsoft.teams" "$HOME/Library/Containers/com.microsoft.teams2"

    Find Teams folders on Mac
  3. Delete the group container with rm -rf "$HOME/Library/Group Containers/UBF8T346G9.com.microsoft.teams"
  4. Delete the app container with rm -rf "$HOME/Library/Containers/com.microsoft.teams2". rm -rf doesn’t ask for confirmation, so check both paths carefully, and never delete the parent Group Containers or Containers folders, which hold data for other apps
  5. Confirm both folders are gone with test ! -e "$HOME/Library/Group Containers/UBF8T346G9.com.microsoft.teams" && test ! -e "$HOME/Library/Containers/com.microsoft.teams2" && echo "Teams containers removed"

    Confirm folders are deleted
  6. Ask the user to relaunch Teams from Applications and sign in if prompted
  7. Check that Teams starts, chats and channels load, meetings open, and the original problem is gone. As on Windows, the first start is slower while Teams rebuilds its data

Remote and fleet version: A remote management tool usually runs Mac scripts as root, so $HOME points to root’s home folder, not the user’s. This version works through each user’s home folder and skips anyone who has Teams open:

The Script:

Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *

#!/bin/zsh
# Clear the new Teams cache for every user who isn't running Teams.
# Run as root through your remote management tool.
for home in /Users/*; do
  user=$(basename "$home")
  [[ "$user" == "Shared" ]] && continue

  group="$home/Library/Group Containers/UBF8T346G9.com.microsoft.teams"
  app="$home/Library/Containers/com.microsoft.teams2"
  [[ -d "$group" || -d "$app" ]] || continue

  if pgrep -u "$user" -if 'Microsoft Teams|MSTeams' >/dev/null; then
    echo "DEFERRED: Teams is running for $user"
    continue
  fi

  if rm -rf "$group" "$app"; then
    echo "COMPLETED: Cleared new Teams cache for $user"
  else
    echo "FAILED: Could not clear new Teams cache for $user"
  fi
done
Script copied to clipboard

If the script returns Operation not permitted, macOS privacy protections are blocking access to the containers. The agent running the script needs Full Disk Access, usually granted through an MDM configuration profile or remote management on Mac.

Still finding classic Teams? Classic Teams reached end of availability on July 1, 2025, but its cache can stay behind on migrated devices. It lives in %APPDATA%\Microsoft\Teams on Windows and ~/Library/Application Support/Microsoft/Teams on Mac. Quit Teams.exe or the classic app first, then delete the folder’s contents.

» Here are the differences between RMM and MDM

If clearing the cache doesn’t fix it

Stop clearing it if the problem also shows up in the Teams web client, on another device, or for other users, because that tells you the cause isn’t local. The same goes for missing messages or wrong unread counts, where clearing the cache only destroys the logs. For everything else, where the problem shows up tells you what to check next:

  • Teams keeps asking the user to sign in: Test the account in a browser and check the Entra sign-in logs for Conditional Access or device registration failures. If those are clean, look for stale entries in Credential Manager and remove only those, since other Microsoft 365 apps share the same credentials.
Credential Manager
  • The Teams Meeting button is missing in Outlook: In classic Outlook, open File > Options > Add-ins and check whether the add-in is disabled or missing. Re-enable a disabled add-in from COM Add-ins or Disabled Items, and repair or reinstall a missing one.
Teams meeting add-ins
  • Teams crashes or won’t launch: Check Windows Logs > Application in Event Viewer and run Get-AppxPackage -Name MSTeams | Select-Object Name, Version, Status. Try Repair first, then reinstall.
Event Viewer logs
  • The user is on Citrix, AVD, or FSLogix: Their real profile may live in a roaming profile or container, not on the session host. Clear the cache in their profile after they sign out, not on the shared host.

With Robin by Atera: The two most common follow-ups don’t need a technician. Robin removes cached Office, Outlook, Teams, ADAL, or OneDrive credentials when stale sign-in data is causing repeated authentication problems, then checks and remediates supported Microsoft 365 integration points such as the Teams Meeting Add-in.

Where Robin stops and your technicians start: Conditional Access and device registration failures come from tenant-wide identity policy, and changing that policy affects every user it applies to. Missing messages need someone to read the logs and often escalate to Microsoft support. Virtual desktop profiles mean working on shared hosts or profile containers, where a mistake can affect other users or corrupt a profile. Robin takes the routine cases off the queue so your team has time for those.

Let Robin handle routine Teams cleanup

Clearing the Teams cache fixes a narrow set of problems well, like a blank window, a client stuck loading, or stale data on one machine. Clearing it at the right time matters as much as deleting the right folder without pulling anyone out of a meeting. When the same problem follows the user to the web client or another device, the cache was never the cause.

Robin takes the routine cases off your technicians’ plate. On Windows, it runs the supported repair path for a damaged new Teams client. It removes stale Microsoft credentials when they cause repeated sign-in prompts, and restores a missing Teams Meeting Add-in, all without a technician remoting in. Robin is sold separately as an add-on to the Atera IT suite.

» Interested? Learn more about Robin or try Atera for free

Was this helpful?

* Scripts are provided for your benefit. You understand and acknowledge that when downloading and/or copying and/or using the Scripts: (i) you may be exposed to Scripts from a variety of sources, (ii) Atera is not responsible and takes no liability for the accuracy, usefulness, integrity, lawfulness, title or infringement, security, functionality or Intellectual Property Rights of, or relating to, such Scripts; and (iii) the Scripts are provided “AS IS” and “AS AVAILABLE”, and may have errors, and may not be malware-free, and that your interactions with, and use of, the Scripts is at your sole risk and free will. You hereby agree to waive, and hereby do waive, any legal or equitable rights or remedies you may have against Atera with respect to the Scripts.

Related Articles

How to run sfc /scannow in Windows 11 and fix what it can’t repair

Read now

How to fix Microsoft Authenticator not working

Read now

How to fix a printer that is offline or not printing

Read now

ServiceNow Teams integration: fixes in chat with Robin

Read now

Endless IT possibilities

Boost your productivity with Atera’s intuitive, centralized all-in-one platform