May 19 2023 08:56 AM - edited May 19 2023 09:15 AM
For a group of AD users in my organization then my server application (Dot Net Core, C#) needs to programmatically delete chat recordings and chat files that are older than 30 days. It only applies to 1 to 1 chats and group chats. Not chats in channels.
Could someone point me in the correct direction of where to start?
Which Graph API endpoints would I use?
Am I likely to experience any obvious technical issues in what I'm trying to do?
May 22 2023 09:27 PM
May 23 2023 03:10 AM
@chrisfellows -There are two new API endpoints that developers can now use when working with Microsoft Teams chat messages.
A new method has been added to “soft delete” messages. which can now programmatically be done on any of one of:
POST /users/{userId}/chats/{chatsId}/messages/{chatMessageId}/softDelete
Important note: this call is only for delegated permissions right now. There are no application permissions for these calls.
May 23 2023 06:21 AM
May 24 2023 03:19 AM
Apr 22 2024 05:36 AM - edited Apr 22 2024 05:37 AM
@chrisfellows - Currently there is no API available to achieve this functionality. There is only the ability to get and list recordings of meetings: callRecording resource type - Microsoft Graph beta | Microsoft Learn.
To achieve your requirements, we recommend you give your feedback in Teams Feedback Portal.
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.