Forum Discussion
DarrenB852
Jan 12, 2023Copper Contributor
Clearing all posts in a teams channel
Hi there, I am hoping someone can advise: we need to clear all of the posts in a teams channel to effectively start fresh. Is this possible some how as a team owner? If not, any other solutions tha...
- Jan 12, 2023As an owner of the Team, you can delete any post within (regular) channels. There is no quick "delete all" solution though, you'll have to do it one at a time. Perhaps it's best if you just delete the channel and recreate it?
SwissMaWi
Copper Contributor
It would probably work... but why you need rocket science to perform such a simple task?
TonyRedmond
Mar 06, 2024MVP
The code works... and it's just PowerShell with some Graph API calls. It's not rocket science either.
As to why this code is needed, the ethos of Teams from day zero has been to deliver persistent messaging. That's probably why Microsoft doesn't deliver a method to mass-delete posts. But when PowerShell is available, you can automate tasks to meet your own needs.
As to why this code is needed, the ethos of Teams from day zero has been to deliver persistent messaging. That's probably why Microsoft doesn't deliver a method to mass-delete posts. But when PowerShell is available, you can automate tasks to meet your own needs.