SOLVED

How to set the retention Policy for Microsoft Teams Files

%3CLINGO-SUB%20id%3D%22lingo-sub-1525925%22%20slang%3D%22en-US%22%3EHow%20to%20set%20the%20retention%20Policy%20for%20Microsoft%20Teams%20Files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1525925%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20set%20the%20retention%20policy%20for%20Teams%20Files.%3C%2FP%3E%3CP%3EAs%20I%20know%2C%20I%20can%20set%20the%20policy%20for%20SharePoint%20Site%20and%20OneDrive%20for%20business.%3C%2FP%3E%3CP%3EI%20want%20to%20delete%20the%20files%20which%20belong%20to%20Teams.%3C%2FP%3E%3CP%3EHow%20do%20I%20choose%20the%20SharePoint%20sites%20and%20the%20OneDrive%20accounts%20in%20the%20setting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1525925%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ERetention%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1525952%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20set%20the%20retention%20Policy%20for%20Microsoft%20Teams%20Files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1525952%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F449722%22%20target%3D%22_blank%22%3E%40null_null%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20is%20how%20to%20set%20a%20retention%20policy%20for%20Teams%20chats%20and%20conversations%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fretention-policies%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fretention-policies%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20is%20for%20SharePoint%20and%20OneDrive%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fretention-policies-sharepoint%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fretention-policies-sharepoint%3Fview%3Do365-worldwide%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ETeams%20is%20a%20converged%20application.%20Files%20in%20Teams%20go%20into%20SharePoint%20(For%20Teams%20files)%20or%20OneDrive%20(for%20personal%20files).%20Setting%20the%20retention%20policy%20on%20SharePoint%20and%20OneDrive%20files%20is%20therefore%20setting%20it%20for%20files%20in%20Teams%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20specify%20which%20SharePoint%20sites%20and%20OneDrive%20accounts%20would%20be%20when%20you%20are%20creating%20the%20policy%20-%20see%20here%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fcreate-retention-policies%3Fview%3Do365-worldwide%23configuration-information-for-sharepoint-sites-and-onedrive-accounts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fcreate-retention-policies%3Fview%3Do365-worldwide%23configuration-information-for-sharepoint-sites-and-onedrive-accounts%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1525995%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20set%20the%20retention%20Policy%20for%20Microsoft%20Teams%20Files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1525995%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20might%20be%20the%20perfect%20answer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F449722%22%20target%3D%22_blank%22%3E%40null_null%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3Eto%20get%20a%20quick%20look%20(not%20a%20detailed%20documentation)%20on%20how%20retention%20policy%20works%20%2Cclick%20on%20the%20link%20below.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams-blog%2Fretention-policies-for-microsoft-teams%2Fba-p%2F178011%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams-blog%2Fretention-policies-for-microsoft-teams%2Fba-p%2F178011%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20a%20Microsoft%20Tech%20community%20blog%20Post!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1528135%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20set%20the%20retention%20Policy%20for%20Microsoft%20Teams%20Files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1528135%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20so%20much%20for%20your%20reply.%3C%2FP%3E%3CP%3EWe%20want%20to%20make%20sure%20if%20we%20set%20the%20retention%20policy%20for%20the%20OneDrive%20account%2C%20will%20all%20of%20the%20files%20(some%20belong%20to%20Teams%20and%20some%20not)%20in%20OneDrive%20for%20Business%20be%20deleted%20or%20just%20the%20files%20(chat%20file)%20belong%20to%20Teams%20will%20be%20deleted.%3C%2FP%3E%3CP%3EWe%20want%20to%20set%20a%20policy%20that%20just%20deletes%20the%20files%20belong%20to%20teams%20and%20have%20no%20effect%20on%20other%20personal%20files.%3C%2FP%3E%3CP%3EThanks%20so%20much.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

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.

3 Replies
Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution
Hi @null_null

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-wo...

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-worldw...

Hope that answers your question

Best, Chris
Highlighted

@Christopher Hoard 

this might be the perfect answer.

 

Also

@null_null ,

to get a quick look (not a detailed documentation) on how retention policy works ,click on the link below.

https://techcommunity.microsoft.com/t5/microsoft-teams-blog/retention-policies-for-microsoft-teams/b...

 

It is a Microsoft Tech community blog Post!

Highlighted

@Christopher Hoard 

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.