Jul 16 2020 02:03 AM
I want to set the retention policy for Teams Files.
As I know, I can set the policy for SharePoint Site and OneDrive for business.
I want to delete the files which belong to Teams.
How do I choose the SharePoint sites and the OneDrive accounts in the setting.
Thanks in advance.
Jul 16 2020 02:24 AM
SolutionJul 16 2020 02:44 AM
this might be the perfect answer.
Also
to get a quick look (not a detailed documentation) on how retention policy works ,click on the link below.
It is a Microsoft Tech community blog Post!
Jul 16 2020 07:27 PM
Thanks so much for your reply.
We want to make sure if we set the retention policy for the OneDrive account, will all of the files (some belong to Teams and some not) in OneDrive for Business be deleted or just the files (chat file) belong to Teams will be deleted.
We want to set a policy that just deletes the files belong to teams and have no effect on other personal files.
Thanks so much.
Nov 24 2021 07:08 AM
My understanding based on this article 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!
Nov 24 2021 12:40 PM
Dec 18 2021 01:39 PM
Yeah it keeps changing :D
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 :D
Best, Chris
Apr 01 2022 08:46 PM
Thanks @Christopher Hoard! Sorry I am just getting to the last message. Yes, that made sense and I verified that through my testing as well :)
Nov 01 2023 09:11 PM
@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 .
Jul 16 2020 02:24 AM
Solution