Get the folder location for Teams chat files and folders for users in different countries

Copper Contributor

I have an unattended Dot NET Core app (v7.0) for our company and I need to use Graph SDK (or the REST API directly) to delete old Teams chat files and chat recordings for 1 to 1s and meetings but not for channels. (The built in Teams functionality is not suitable for what we need).


With Graph SDK then I'm able to enumerate each user and their OneDrive (for business) folders & files but I need to determine which folders to check. I know that the folders are normally "Recordings" & "Microsoft Teams Chat Files" but is this fixed? Some users in non-English speaking countries have told me that their folder name is the translated name.


How do I programmatically identify the names of the folders containing the user's recordings and chat files? Do I have to hard-code the folder name list to check? Also, can the folder name by defined by the administrator?

3 Replies

@chrisfellows - Using get chat message API we can get the callRecordingUrl as a message, since meeting recordings are stored in OneDrive we have to use driveitem-get-content.
As of now we don't have option to get meetings recordings directly with Teams API.





There is no way programmatically to identify the names of the folders containing the user's recordings and chat files.




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.




Am I correct that, for non-English users, the folder names will be the non-English translation of "Microsoft Teams Chat Files" and "Recordings"? Is the list available anywhere?

I can use Google Translate but may be the translation might sometimes be slightly different to the actual folder name.

@chrisfellows - There is no official documentation available anywhere.