Thursday, May 2, 2024
HomePowershellTips on how to Clear Microsoft Groups Cache — LazyAdmin

Tips on how to Clear Microsoft Groups Cache — LazyAdmin


It’s best to clear the Groups cache when Microsoft Groups doesn’t begin or isn’t loading the newest conversations. Resetting Microsoft Groups will ensure that the newest conversations and teams are loading once more.

The Microsoft Groups cache is a neighborhood copy of all of your chats and teams saved in your laptop. By utilizing the cache, Microsoft Groups can begin up rapidly. Nonetheless, an out-of-sync cache could cause points with Groups.

On this article, I’ll clarify how one can rapidly clear Groups cache for each the previous and new Groups variations on Home windows and macOS.

Clear Groups Cache on Home windows

There are at present two variations getting used of Microsoft Groups. We have now the Groups traditional app and the brand new Groups app. The latter is a small banner with New on the icon. The variations are additional minimal, particularly if you end up working Groups in darkish mode.

We’ll begin with the brand new Groups app, and after that, I’ll present you the best way to clear the cache of the traditional Groups app.

The brand new Groups App

To clear the cache within the new Groups app, you have got two choices. We are able to delete the cache recordsdata manually or we will use the reset app possibility. In each circumstances, ensure that Groups is absolutely closed:

close teams
  • Proper-click on the Groups icon within the taskbar and select Give up

Methodology 1 – Delete the Information

  1. Press the Home windows key + R (or right-click on Begin and select Run)
  2. Copy and Paste the next path within the Run Dialog and press enter or Okay:
%localappdatapercentPackagesMSTeams_8wekyb3d8bbweLocalCacheMicrosoftMSTeams
  1. Delete all of the recordsdata and folders within the listing
clear teams cache
  1. Restart Groups

Beginning up Groups can take a bit longer than regular, simply give it a minute or two.

Methodology 2 – Resetting the Groups app

One other technique to clear the Groups cache is to reset Groups app. Just be sure you have closed Groups.

  1. Open Begin and search for Groups
  2. Proper-click on the Microsoft Groups app
  3. Select App Settings
Reset Teams
  1. Scroll a bit down by way of the Settings
  2. Underneath Reset click on on Reset
  3. Click on once more on Reset within the popup
clear microsoft teams cache

Await the reset to complete and reopen Groups. Once more, it may take a minute or two earlier than Groups opens.

Methodology 3 – Utilizing PowerShell

We are able to additionally use PowerShell to clear the Groups cache. The benefit of PowerShell is you can execute it on distant computer systems simply. I’ve created a small script that can shut Groups, clear the cache, and reopen Groups.

Yow will discover the entire script right here in my GitHub repository. To take away the Groups cache with PowerShell you should use the command beneath:

Take away-Merchandise -Path "$env:LOCALAPPDATAPackagesMSTeams_8wekyb3d8bbwe" -Recurse -Pressure -Verify:$false

The Cache Traditional Groups App

In case you are nonetheless utilizing the traditional Groups app, then I like to recommend upgrading Groups to the newest model. The newer model is loads quicker, makes use of fewer assets out of your laptop and it accommodates all the newest options. Learn this text for extra info.

Clearing the cache of the traditional Groups app can solely be executed by deleting the recordsdata manually or with PowerShell. Just be sure you have closed Groups earlier than you proceed.

  1. Press the Home windows Key + R (or right-click on begin and select Run)
  2. Copy and paste the next path: %appdatapercentMicrosoft and press enter
  3. Delete the folder Groups with all of the contents in it.
teams clear cache

Now you can reopen Groups. It’s going to take a bit longer to begin as a result of it might want to obtain all of your chats and teams once more.

Utilizing PowerShell

When it is advisable to take away the cache on a number of computer systems, or on a distant laptop, then you should use the PowerShell script beneath. It’s going to first ask for affirmation after which shut Groups, take away the cache, and restart Groups once more.

If you wish to use the script in a deployment device, then you may merely copy the half inside the primary If assertion.

$clearCache = Learn-Host "Do you wish to delete the Groups Cache (Y/N)?"
$clearCache = $clearCache.ToUpper()

if ($clearCache -eq "Y"){
  Write-Host "Closing Groups" -ForegroundColor Cyan
  
  strive{
    if (Get-Course of -ProcessName Groups -ErrorAction SilentlyContinue)  Cease-Course of -Pressure
        Begin-Sleep -Seconds 3
        Write-Host "Groups sucessfully closed" -ForegroundColor Inexperienced
    else{
        Write-Host "Groups is already closed" -ForegroundColor Inexperienced
    }
  }catch{
      echo $_
  }

  Write-Host "Clearing Groups cache" -ForegroundColor Cyan

  strive Take away-Merchandise -Recurse -Verify:$false
    Write-Host "Groups cache eliminated" -ForegroundColor Inexperienced
  catch{
    echo $_
  }

  Write-Host "Cleanup full... Launching Groups" -ForegroundColor Inexperienced
  Begin-Course of -FilePath $env:LOCALAPPDATAMicrosoftTeamscurrentTeams.exe
}

Clear Groups Cache in macOS

If you end up utilizing macOS, you have to to make use of the Terminal to take away the cache recordsdata for each the traditional and the brand new Groups app. Just be sure you have closed Groups earlier than you proceed:

  • Proper-click the Groups icon within the dock, and select Give up or press Command (⌘) + Q

We might want to open the Terminal app to take away the recordsdata:

  • Open the /Purposes/Utilities folder within the Finder and double-click Terminal

In case you are utilizing the traditional Groups, then use the command beneath to take away the cache:

rm -r ~/Library/Software Help/Microsoft/Groups

For the brand new Groups app, we might want to take away the recordsdata and folders from two areas:

rm -rf ~/Library/Group Containers/UBF8T346G9.com.microsoft.groups
rm -rf ~/Library/Containers/com.microsoft.teams2

When executed, restart Groups.

Wrapping Up

I’ve had a few events the place Groups wouldn’t rebuild the chat historical past after eradicating the cache. In these circumstances, you have to to take a few further steps as described on this article.

Clearing the Groups cache ought to resolve most points with Microsoft Groups. I hope this text helped you, when you’ve got any questions, simply drop a remark beneath.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments