Forum Discussion
How to set the retention Policy for Microsoft Teams Files
- Jul 16, 2020Hi Arthur_wang
Here is how to set a retention policy for Teams chats and conversations
https://docs.microsoft.com/en-us/microsoftteams/retention-policies
Here is for SharePoint and OneDrive
https://docs.microsoft.com/en-us/microsoft-365/compliance/retention-policies-sharepoint?view=o365-worldwide
Teams is a converged application. Files in Teams go into SharePoint (For Teams files) or OneDrive (for personal files). Setting the retention policy on SharePoint and OneDrive files is therefore setting it for files in Teams
To specify which SharePoint sites and OneDrive accounts would be when you are creating the policy - see here
https://docs.microsoft.com/en-us/microsoft-365/compliance/create-retention-policies?view=o365-worldwide#configuration-information-for-sharepoint-sites-and-onedrive-accounts
Hope that answers your question
Best, Chris
My understanding based on https://docs.microsoft.com/en-us/microsoft-365/compliance/create-retention-policies?view=o365-worldwide#additional-retention-policy-needed-to-support-teams was that Teams files get covered by the Microsoft 365 Groups location. Your guidance seems to indicate that they get covered by the SharePoint location (as is indicated in a few other places such as this). I know the features and guidance keeps evolving so mayb e it has changed since this post was published.
Any chance you can confirm your understanding of what location should be used for the Teams files?
Thank you!
Yeah it keeps changing 😄
At the current time,
- Files in Standard Teams Channels in Microsoft 365 connected teams are covered under Microsoft 365 Groups
- Files in Private Channels are covered under SharePoint (think of this as SharePoint Sites not connected to Microsoft 365 Groups)
- Files in Files App > OneDrive are covered under OneDrive
Did a blog earlier this year to clear up the confusion
Teams Real Simple with Pictures: Retention Policies on Private Channels – @Microsoft365Pro
Hope that makes sense 😄
Best, Chris
- gauravmahajanApr 02, 2022Brass Contributor
Thanks ChrisHoardMVP! Sorry I am just getting to the last message. Yes, that made sense and I verified that through my testing as well 🙂
- KrisSub2023Nov 02, 2023Brass Contributor
gauravmahajan ,@Christopher Hoard!
I knew this was a old thread, but I have a similar requirement to setup retention policy on the files shared in Teams 1:1 Chat.
Currently whoever share some documents within teams , is getting stored in OneDrive-> Microsoft Teams chat files. Now I have a requirement to delete all the chat files created 30 days back only from that Folder ( OneDrive-> Microsoft Team Chat Files)
Is this something you have achieved ? then please guide me. I'm trying to do the same from last 1 month but not successful .