We're Hiring!

Mattermost, Inc.

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 gmail.com (~ 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 gmail.com domain, this can be done from the database level BUT I would recommend you to back it up first.

DELETE FROM Users WHERE Email LIKE "%gmail.com";

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