To clear the cache in Microsoft Teams, you have to go into the device settings rather than the Teams settings. In Windows, you would use the Windows key + R key. On macOS, you would use the Terminal.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results