Skip to content

Black Friday: 40% off. Purgy for $12 $20 with code Code , until Dec 12.

Get the deal
← Blog

How to Clear the Microsoft Teams Cache on Mac

Clear the Microsoft Teams cache on Mac
On this page
  1. Is it safe to clear the Teams cache?
  2. When clearing the cache will not help
  3. Which version of Teams do you have?
  4. How to clear the new Teams cache
  5. Do not delete the other UBF8T346G9 folders
  6. How to clear the cache using Finder
  7. Remove leftovers from classic Teams
  8. How much space is Teams using?
  9. Other Microsoft apps that use a lot of space
  10. Clearing Teams on a work Mac
  11. A simple routine for Teams storage
  12. Questions about the Teams cache on Mac
  13. How Purgy clears the Teams cache

Quick answer: Quit Teams, then delete two folders: ~/Library/Group Containers/UBF8T346G9.com.microsoft.teams and ~/Library/Containers/com.microsoft.teams2. Microsoft lists both for the new Teams on Mac. Open Teams again and it rebuilds them, so the first start is slower. Leave the other UBF8T346G9 folders alone.

Tested on: MacBook Air M1, 16 GB, macOS 27.0.1, on 23 November 2026. Teams is not installed on this Mac, so the clearing steps come from Microsoft's own documentation and are not tested here. I did check, read-only, which Microsoft folders this Mac still had and how the shell reads Microsoft's command.

Microsoft Teams keeps local data on your Mac: cached images, previews and web content. When that data goes wrong, Microsoft's fix for the Mac is to delete the two folders above.

This guide shows how to do it safely, which neighbouring folders to keep, and when clearing the cache is the wrong fix.

Is it safe to clear the Teams cache?

Microsoft's guide to clearing the Teams client cache gives the steps for Mac and says only that Teams may take longer to start afterwards, while it rebuilds the cache files.

Your messages and files are not kept only in that cache. Microsoft's page on how Exchange and Teams interact places channel messages in a group mailbox in Exchange Online, and files shared in Teams in SharePoint and OneDrive.

Microsoft does not say whether you will need to sign in again, or whether settings kept on your Mac survive. Not tested here, so expect either.

When clearing the cache will not help

Microsoft is blunt about this. It treats clearing the cache as a fix for a few problems in the app on your Mac, not as the first thing to try.

It advises against clearing the cache for missing messages, chat history that will not load, a missing team or channel, or wrong notifications and unread counts. It says clearing does not fix those, and it deletes the diagnostic logs needed to find the cause.

So for those problems, contact your IT team or Microsoft support first, before you clear anything.

Which version of Teams do you have?

The steps differ for the new Teams and the classic app it replaced. Microsoft's classic Teams end-of-availability page gives the dates.

  • New Teams: the current app, and the one these steps are for.
  • Classic Teams: support ended on 1 July 2024, and Microsoft says the app stopped being available on 1 July 2025. Its data can still be on your Mac.

Most people today have only the new app. The classic app's leftovers are covered further down, because they are easy to forget.

How to clear the new Teams cache

These steps follow Microsoft's Mac instructions. Not tested here, because Teams is not installed on my Mac.

  1. Quit Teams completely. Right-click its icon in the Dock and choose Quit, or press Cmd + Q while it is open.
  2. Open Terminal from Applications > Utilities.
  3. Run these two commands, pressing Return after each one:
    rm -rf ~/Library/Group\ Containers/UBF8T346G9.com.microsoft.teams
    rm -rf ~/Library/Containers/com.microsoft.teams2
  4. Open Teams again and sign in if asked.

Both commands delete straight away, with no Trash step. Type them exactly as shown, including the backslash.

Why the backslash matters

Microsoft's page prints the first command without a backslash before the space in Group Containers. I checked how Terminal reads that, using printf, which only prints and deletes nothing.

Without the backslash, the shell split it into two paths: ~/Library/Group and Containers/UBF8T346G9.com.microsoft.teams. With the backslash, it read one path, the right one. So the backslash, or quotes around the path, is not optional.

Which Microsoft folders to clear. UBF8T346G9.com.microsoft.teams (delete), new Teams cache; UBF8T346G9.Office (keep), used by Office apps; ~/Library/Containers/; com.microsoft.teams2 (delete), new Teams app data; ~/Library/Application Support/Microsoft/; Teams/ (delete), classic Teams leftovers, if any.
Which Microsoft folders to clear. Quit Teams first. Only the two Teams folders go.

Do not delete the other UBF8T346G9 folders

In ~/Library/Group Containers you will see other folders that start with UBF8T346G9. On my Mac there were six, left by Office apps: UBF8T346G9.Office, .ms, .OfficeOsfWebHost, .OfficeExcelWidget, .OfficeOneDriveSyncIntegration and .com.microsoft.oneauth.

Microsoft's Teams steps name only the Teams folder. Its Office for Mac uninstall guide removes UBF8T346G9.Office only when you remove Office itself. So keep every other UBF8T346G9 folder.

On my Mac, Terminal could not even read UBF8T346G9.Office. Both du and ls gave "Operation not permitted", because macOS guards other apps' group containers.

How to clear the cache using Finder

If you prefer not to use Terminal, Finder can do the same with the Trash in between. The folders are hidden, so open them by path. Not tested here.

  1. Quit Teams.
  2. In Finder, press Cmd + Shift + G and paste ~/Library/Group Containers/.
  3. Find UBF8T346G9.com.microsoft.teams and move it to the Trash.
  4. Press Cmd + Shift + G again and paste ~/Library/Containers/.
  5. Find com.microsoft.teams2 and move it to the Trash.
  6. Empty the Trash and open Teams.

Remove leftovers from classic Teams

If you used Teams before the new app arrived, the classic app's data may still be on your Mac. Microsoft's classic steps clear this folder:

~/Library/Application Support/Microsoft/Teams

My Mac had one, though no Teams app is installed. It held a single media-stack folder, last changed in October 2024, and du measured it at 20 KB. Small here, but proof that classic leftovers outlive the app.

If it exists and you only use the new Teams, you can move it to the Trash. Also check /Applications for an old classic Teams app.

How much space is Teams using?

Measure before and after, so you know how much you freed. This command reads only; it changes nothing:

du -sh ~/Library/Group\ Containers/UBF8T346G9.com.microsoft.teams ~/Library/Containers/com.microsoft.teams2

If it prints "Operation not permitted", macOS is guarding the folder, as it did with the Office folder on my Mac. Select the folder in Finder and choose File > Get Info instead. Not tested here with Teams.

If the number climbs back after clearing, Teams is refilling its cache as you use it.

Other Microsoft apps that use a lot of space

If Teams was large, OneDrive may be too. Microsoft's guide to OneDrive Files On-Demand for Mac gives a built-in way to shrink it.

Right-click a file and choose Free up space. Microsoft says the file stays in OneDrive but stops using space on your Mac. Not tested here, because OneDrive is not installed on my Mac.

For Outlook, do not delete its data by hand. Microsoft's Office uninstall guide warns that removing its container folders removes Outlook data, and says to back them up first.

Clearing Teams on a work Mac

On a Mac your company manages, check with your IT team first. Microsoft says clearing the cache deletes the diagnostic logs they may need to find the cause.

A simple routine for Teams storage

You do not need to clear Teams often. Doing it when there is a reason works best.

  • When Teams misbehaves locally: clear the cache, unless the problem is one of those Microsoft lists above.
  • When you are short of space: check its size with the command above first.
  • After switching to new Teams: delete classic Teams leftovers once.

For other leftovers apps leave behind, see how to fully uninstall apps on Mac and whether ~/Library/Caches is safe to delete.

Questions about the Teams cache on Mac

These are the questions that come up most about clearing Teams.

Will clearing the Teams cache delete my chats?

Microsoft's documentation keeps channel messages in Exchange Online and shared files in SharePoint and OneDrive, not in the cache. Not tested here, as Teams is not installed on my Mac.

Do I need to sign in again afterwards?

Possibly. Microsoft's cache page does not say. If Teams asks, sign in with your usual work or school account.

Why is Teams so slow the first time after clearing?

Microsoft says the restart can take longer than usual because Teams has to rebuild its cache files. Later starts should not have that delay.

Is it safe to delete every folder starting with UBF8T346G9?

No. Those folders belong to different Microsoft apps, and UBF8T346G9.Office is part of Office. Only delete the Teams one.

How often does the Teams cache need clearing?

Only when you need the space or Teams misbehaves locally. Microsoft calls it a targeted step, not a routine one.

Is there a Clear Cache button in Teams for Mac?

Microsoft's cache page describes a Reset option for Windows only. For the Mac, its steps are the Terminal commands above.

How Purgy clears the Teams cache

New Teams is a sandboxed app, so its data sits in ~/Library/Containers. Purgy scans the cache folder inside every sandboxed app's container, so a Teams cache over 1 MB appears under System caches with its size. Not tested here with Teams.

  1. Quit Teams completely, as described above.
  2. Open Purgy and let it scan. App caches are ticked by default, and the Review list shows each one's size.
  3. Press Clean now. Caches like this one are deleted permanently, because they rebuild. Your own files go to the Trash instead.

This is a lighter clean than Microsoft's full reset. Purgy locks everything in ~/Library/Group Containers, so it never deletes the Teams folder there or the Office folders beside it. If Teams is misbehaving rather than just using space, follow Microsoft's steps above.

See what Teams and your other apps cache with the free trial.