Best ways for a new school year

Hello everyone and thank you for this fabulous software!

I installed it because of the covid and it worked very well in my high school.
Currently I have 1200 user accounts and almost 1000 students.

There is one team per class. Some students are leaving and I don’t want them to have access to Mattermost anymore.

What do you advise me to do?

  • Reinstall Mattermost completely?
  • Delete the teams (classes)?
  • Delete users but how do I delete student accounts (is it possible to delete only those who have a (~ 80% :frowning: ) account?).
  • Is it possible to reset the database and start again only with the admin account?

In short, thank you in advance if you have any ideas :slight_smile:

Bristow from France

Hello, @bristow

Happy to know that you are enjoying Mattermost. Based on the following statement:

In general, you are advised to deactivate users if they are no longer supposed to have access to Mattermost (and potentially have it again in the future).

Mattermost is designed as a system-of-record, so there is not an option to delete users from the Mattermost system, as such an operation could compromise the integrity of message archives.

If you do not want to lose any data, I would recommend you only run the mattermost CLI to delete the users but it will take a lot of time.

The team delete will only remove the teams which the users belong to, so the users will still have access.

If you are confident that the users that you want to delete users with the domain, this can be done from the database level BUT I would recommend you to back it up first.


Ultimately, you can completely reset mattermost by running the mattermost reset --confirm command.

Again, it is very important to have a backup before performing any of the steps above.

1 Like

New year, new actions :slight_smile:

I just upgraded the server to version 6 :star_struck:

This year, I don’t want to do a complete reset because I want to keep students and teachers, and even teams.

Except that I have about 1000 students and I don’t know how to manage them.
I would like to delete a team (a class for me) and the students inside (and their post) semi-automatically. Is this possible (for info, I have mmctl working)?

Thank you for your answers !