Detaching a multi tenant teams bot from its application instances
Hi,
I am working with a Teams recording bot - a bot that captures audio/video streams of Teams call participants (as per the teams-recording-bot-sample). It is a multi tenant service. When I onboard a new customer, the customer runs a PowerShell script which creates an application instance of my bot within the customer's tenant + a compliance recording policy, and applies the policy on users within the customer's tenant. From that point on, my bot joins every call these users take part in.
However, there's no guarantee that when this customer leaves, or disables the feature, they will take the time to delete the application instance from their tenant. Since I have no admin permissions to the customer's tenant, I cannot delete the application instance myself. Is there a way to detach my bot from the application instance without the customer's intervention?
I'd like my bot to stop receiving calls from a certain customer without having to rely on the customer.
Thank you!