Home

Deleting Teams messages en masse

%3CLINGO-SUB%20id%3D%22lingo-sub-363334%22%20slang%3D%22en-US%22%3EDeleting%20Teams%20messages%20en%20masse%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363334%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20looking%20for%20a%20way%20to%20delete%20messages%20en%20masse%20based%20on%20some%20parameters.%20I%20understand%20that%20the%20messages%20are%20being%20saved%20in%26nbsp%3BConversation%20History%5CTeam%20Chat.%20How%20would%20I%20go%20about%20manipulating%20these%20objects%3F%20Let's%20say%20I%20want%20to%20delete%20anything%20from%20before%20a%20certain%20date%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-363334%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETips%20%26amp%3B%20Tricks%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363346%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20formatting%20en%20masse%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363346%22%20slang%3D%22en-US%22%3E%3CP%3EYeeeeaaah..%20that%20thing%20that%20doesn't%20work%3F%20BTW%2C%20that's%20exactly%20why%20I'm%20trying%20to%20find%20a%20way%20to%20do%20it%20manually.%20According%20to%20MS%2C%20everything%20is%20powershell%2C%20so%20I'd%20like%20to%20know%20how%20to%20do%20it%20with%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-363337%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20formatting%20en%20masse%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-363337%22%20slang%3D%22en-US%22%3EYou%20would%20need%20to%20use%20retention%20policies%20for%20this%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fretention-policies%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fretention-policies%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E
Juraj Maksi
New Contributor

Hi all,

 

I'm looking for a way to delete messages en masse based on some parameters. I understand that the messages are being saved in Conversation History\Team Chat. How would I go about manipulating these objects? Let's say I want to delete anything from before a certain date?

 

Thanks!

2 Replies
You would need to use retention policies for this:

https://docs.microsoft.com/en-us/microsoftteams/retention-policies

Adam

Yeeeeaaah.. that thing that doesn't work? BTW, that's exactly why I'm trying to find a way to do it manually. According to MS, everything is powershell, so I'd like to know how to do it with it.

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies