SOLVED

Mass deleting posts

Occasional Visitor

I've been tasked with cleaning up a team channel that has gotten absolutely massive, with literally thousands of posts. I have been added as an owner of the team, and while I can delete any comments, it would be incredibly inefficient to delete every post and reply one by one.

 

Is there a way to delete a post *and all replies to that post* at once, as a team owner? I have not yet found a way to do so. It would be even acceptable for me to do a "hard reset" and delete all posts entirely and just start over, with me curating it moving forward.

3 Replies
best response confirmed by ThereseSolimeno (Microsoft)
Solution

Not possible via the UI, but you should be able to automate it via the Graph API: https://docs.microsoft.com/en-us/graph/api/group-delete-thread?view=graph-rest-1.0&tabs=http

It looks like deleting conversations (emails) in O365 groups, not sure if it works for Teams, too...
Graph API does not support yet the deletion of Teams messages
https://docs.microsoft.com/en-us/graph/api/resources/chatmessage?view=graph-rest-beta

Deletion is still manual today.