Forum Discussion
How to programmatically delete chat recordings and uploaded files
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:
- One-to-one or group chats
- channel chats
- replies to chat messages
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.
Reference Document-chatMessage: softDelete - Microsoft Graph v1.0 | Microsoft Learn
- chrisfellowsMay 23, 2023Copper ContributorI don't need to delete messages or chats. I need to delete recordings (of chat/meeting) and files uploaded (to chat/meeting).
- Prasad_Das-MSFTApr 22, 2024
Microsoft
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.
- Sayali-MSFTMay 24, 2023
Microsoft
chrisfellows -We are checking it internally and get back to you once we get any update.