How to Delete Microsoft Teams Cache for All Users via PowerShell
Published Mar 09 2023 08:04 AM 33K Views
Microsoft

For many in education, Microsoft Teams is the collaboration platform that allows students and educators to chat, share files, and collaborate on projects. Like many apps, Microsoft Teams uses cache to store temporary data, such as chat history and files. While the cache is useful for improving performance, it can also become cluttered over time and slow down the app. Deleting the cache can help improve Microsoft Teams performance by reducing the amount of temporary data stored which can also free up storage space. 

 

The Microsoft Teams cache can be deleted manually by deleting all the files and folders in the %appdata%\Microsoft\Teams directory for each user profile. This however can be tedious and can be automated using PowerShell via one line of script.

 

 

 

Get-ChildItem -Path "$env:USERPROFILE\AppData\Local\Microsoft\Teams" -Recurse | Remove-Item -Force -Recurse

 

 

 

Note: It's important to close the Microsoft Teams app on all devices and clear the cache for all users to ensure that the cache is completely cleared.

 

Please leave any feedback or questions about how to improve the script shared above in the comments section below.

 

How to Delete Microsoft Teams Cache for All Users via PowerShellHow to Delete Microsoft Teams Cache for All Users via PowerShell

 

9 Comments
Co-Authors
Version history
Last update:
‎Apr 04 2023 04:08 PM
Updated by: