Forum Discussion
weird files macos download folder
- Sep 11, 2024no never found a solution and still having this problem. brand new mac and fresh teams installation
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 https://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.