How can I delete teams and channels?


I use Mattermost since 3 years and things changed. For example we created a new team 1 year ago, because it was time for a restart. And now everything is more professional and I want to migrate to a new server.

But for this I only want to migrate the data of the new team. It make no sense for me to also migrate the old team, which contain very unprofessional messages.

So I think it would be better to delete everything before the migration. How can I delete a team with their channels and messages? Also how can I delete users and their messages? I do not want to archive the data, I want to delete it. But I can’t find the option for it.

Maybe someone can help me out. The migration is easy and I am only stuck at the deletion of the data.

Thanks! :slight_smile:

I used mmctl now and for other things I used a sql query.