Clear Automatically Microsoft Teams Cache

Case: You want to delete periodically the cache files of Microsoft Teams to make it lighter.

Requisites: Microsoft Teams cache folder path. You can find it by going to your user folder and then go to 'AppData\Roaming\Microsoft\teams\Code Cache'.

Steps:
  • Go to 'Task Manager':

    Go to Task Manager


  • Right click on 'Task Scheduler' and click on 'Create Task...':

     
    Create task


  • Put a name for the task, set some options and click on 'OK':


    Pages in the navigation bar


  • Under 'Triggers', create or edit a trigger:

     
    Create or edit a trigger
     


  • Set the frequency for the trigger execution and enable it:

    Set frequency and enable it

  • Under 'Actions', create or edit an action:

    Create or edit an action

  • Pick 'Start a program' as action, type 'cmd' as program and add as arguments:
    /c "del /Q /S "C:\Users\<your_username>\AppData\Roaming\Microsoft\teams\Code Cache\*"
    Start a program
     

Results: The cache files of Microsoft Teams will be clear automatically on the frequency scheduled.

 

Comments

Popular posts from this blog

Install TWRP Recovery in Xiaomi Redmi 6A

Unbrick or Recover Xiaomi Redmi 10A and other MTK devices

I Need to Send an Automatic Email with Lotus Notes