Forum Discussion

berrynotec's avatar
berrynotec
Copper Contributor
Feb 10, 2024
Solved

weird files macos download folder

Microsoft teams on macos is downloading/creating weird files in the download folder. The folder Teams writes to is called MSTeams. The files are named something like CompositorOutput_0x120289da698_256x134_NV12.yuv and all of them always end with .yuv. What is this and how do I turn it off again? Teams does not even have any write permissions in the system settings. 

  • no never found a solution and still having this problem. brand new mac and fresh teams installation
  • nathanseither's avatar
    nathanseither
    Copper Contributor

    I have yet to find a solution for this. I'm the only one at my company experiencing the issue. I just wrote a script to run via crontab that purges the directory regularly. It's dumb, but it saved me time dealing with a dumb issue that Microsoft doesn't care to address.

    ~/path/to/file.bash
    ```
    #!/bin/bash
    rm -rf ~/Downloads/MSTeams
    mkdir -p "~/Downloads/MSTeams"
    touch "~/Downloads/MSTeams/$(date +%s).purge"
    ```

    Make sure that file is executable:
    ```
    chmod +x ~/path/to/file.bash
    ```

    Then just set it to run via crontab:

    ```
    crontab -e
    ```

    ```
    0 * * * * ~/path/to/file.bash
    ```

    That example will have it run every hour. For other timings you can look at crontab.guru to play around with crontab syntax if you aren't familiar with it.

    Make sure to give the cron application Full Disk Access via Privacy & Security in System Settings. The application won't show up in the list by default. It's located in /usr/sbin.

  • adamlenger's avatar
    adamlenger
    Copper Contributor
    I have the same issue. Have you been able to solve it somehow?
      • Nasi_F's avatar
        Nasi_F
        Copper Contributor

        I have this same problem now, did anyone ever find a solution? Seems to only build up these file when I am in a teams call. I have to keep deleting them throughout the call to prevent my system from running out of storage. Within 30 minutes the folder could have 90+ gb

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    Hi berrynotec,

    the files you're encountering are high-likely temporary files generated by Microsoft Teams during its operation, with the .yuv extension indicating their association with video data, possibly from video calls or meetings.

    It is unusual that these files are not automatically cleaned up by Microsoft Teams.

    1) Ensure your Microsoft Teams application is up-to-date, as newer versions may resolve such issues.

    2) Clear Microsoft Teams cache:

    Classic Teams

    1. If Teams is still running, right-click the Teams icon in the dock, and then select Quit or press Command (⌘)-Q.

    2. In the Finder, open the /Applications/Utilities folder, and then double-click Terminal.

    3. Enter the following command, and then press Return:

     

    rm -r ~/Library/Application\ Support/Microsoft/Teams

     

    • Restart Teams.

    New Teams

    1. If Teams is still running, right-click the Teams icon in the dock, and then select Quit or press Command (⌘)-Q.

    2. In the Finder, open the /Applications/Utilities folder, and then double-click Terminal.

    3. Enter the following commands, and press Return after each command:

     

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

    5. Restart Teams.

     



    Please click Mark as Best Response & Like if my post helped you to solve your issue.
    This will help others to find the correct solution easily. It also closes the item.


    If the post was useful in other ways, please consider giving it Like.


    Kindest regards,


    Leon Pavesic
    (LinkedIn)
    (Twitter)

    • berrynotec's avatar
      berrynotec
      Copper Contributor
      did not help. still happening. also legacy version keeps reappearing in applications although I deleted it several times. would be great if microsoft could fix this and not pollute my download folder with theses unwanted files
    • ghostorm's avatar
      ghostorm
      Copper Contributor

      Have same issue. MS teams keeps writing to Downloads/MSTeams on each call leaving bunch of CompositorOutput_***.yuv files that have to be cleaned up manually

       


      LeonPavesic wrote:

      New Teams

      1. If Teams is still running, right-click the Teams icon in the dock, and then select Quit or press Command (⌘)-Q.

      2. In the Finder, open the /Applications/Utilities folder, and then double-click Terminal.

      3. Enter the following commands, and press Return after each command:

       

       

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

       

      5. Restart Teams.


       

      tried this - did not help.

Resources