Delete user or channel
Aizat last edited by
Hi there! I have just installed Mattermost and been trying to play around with it. I encountered 2 main issues that I need help with.
Every time I try to unarchive a channel, the "save config" button just spinning for ages but did not apply the changes.
Its a bummer that Mattermost does not have a direct method to delete a channel or user.
After some Googling, Mattermost CLI can delete a channel, or user. But due to my lack of knowledge, I have no idea how to use the command line here in the app terminal. But what I've tried:
root@e4cccd87-d627-4899-9fa4-b879fb03e83a:/app/code# sudo -u cloudron /app/code/bin/mattermost mmctl channel list myteam Error: unknown command "mmctl" for "mattermost" Run 'mattermost --help' for usage.
in this case to delete a user:
root@e4cccd87-d627-4899-9fa4-b879fb03e83a:/app/code# sudo -u cloudron /app/code/bin/mattermost user delete email@example.com
Thanks in advance for the tips/help!
@aizat the first one seems like a packaging bug and the second one seems like a documentation bug. I am investigating....
@aizat So, the first one is a bug in mattermost UI. You can see that when you do some actions in the channels UI alone, there are some errors in the browser console. More importantly, I am able to do those actions like unarchive via the CLI just fine.
As for the CLI, this
mmctlis a binary that you now have to run on your PC/Mac. You can download it here - https://github.com/mattermost/mmctl/releases . I have put a small note on how to use it here - https://docs.cloudron.io/apps/mattermost/#command-line-tool