Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Delete user or channel

    Mattermost
    2
    3
    373
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Aizat
      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. 🙂

      1. 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.

      2. 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.
      

      OR
      in this case to delete a user:

      root@e4cccd87-d627-4899-9fa4-b879fb03e83a:/app/code# sudo -u cloudron /app/code/bin/mattermost user delete user@example.com
      

      Thanks in advance for the tips/help!

      girish 2 Replies Last reply Reply Quote 0
      • girish
        girish Staff @Aizat last edited by

        @aizat the first one seems like a packaging bug and the second one seems like a documentation bug. I am investigating....

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff @Aizat last edited by girish

          @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 mmctl is 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

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB