8 lines
388 B
PowerShell
8 lines
388 B
PowerShell
# Inspired by: https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-administration/clear-teams-cache
|
|
|
|
# Stop Teams if it's running
|
|
End-Process -Name "Teams" -Match -Force
|
|
|
|
# Clear all cached content
|
|
LogMsg "Deleting all cached data for Microsoft Teams"
|
|
Get-ChildItem -Path "${Env:AppData}\Microsoft\Teams" -Recurse | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue |