A previous article explains how to delete Teams chats using an interactive Microsoft Graph PowerShell SDK session. This article builds on that information and explains how to use an Azure Automation runbook to find and remove specified chat threads by scanning all user accounts. The results of the scan and any removed chat threads are emailed to a nominated address at the end of processing.
At the TEC 2023 conference in Atlanta, Greg Taylor (Microsoft) analyzed the four-year project he led to remove basic authentication from Exchange Online. Microsoft will reuse the methods and tools developed for this project when it removes other features from Microsoft 365.