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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mattermost
  3. How to clean up old media uploads from Mattermost?

How to clean up old media uploads from Mattermost?

Scheduled Pinned Locked Moved Solved Mattermost
5 Posts 3 Posters 2.9k Views 3 Watching
  • 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.
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #1

    Does anyone know how to do this?

    The one way I thought it might work is to configure an external media store, maybe Minio and age them out somehow.

    Still need a way to clean up what's internally stored.

    Conscious tech

    fbartelsF 1 Reply Last reply
    0
    • robiR robi

      Does anyone know how to do this?

      The one way I thought it might work is to configure an external media store, maybe Minio and age them out somehow.

      Still need a way to clean up what's internally stored.

      fbartelsF Offline
      fbartelsF Offline
      fbartels
      App Dev
      wrote on last edited by
      #2

      @robi i think retention periods for uploads where only in their enterprise license. So you'd need to go through the files stored on the disk manually.

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        Yes, data retention policy is only part of enterprise - https://docs.mattermost.com/administration/data-retention.html

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @robi I found this guide in one of the forums - https://gitlab.com/InstitutMaupertuis/mattermost-old-messages/blob/master/README.md . Use with care, since I have no clue what it does.

          1 Reply Last reply
          0
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by robi
            #5

            Wow, what a horrible design for maintenance.
            Thanks for finding it.

            I'm not interested in editing the DB.
            As long as I find where the files are, I can clean those up without removing the messages and references.

            Looks like I found just that at /app/data/files/.

            A visit via the new File Browser in the Cloudron App Config/Console easily finds the few large attachments.

            Another thing I noticed is that MM generates preview and thumbnail images for some reason, which more than doubles the storage requirements for each image uploaded. Some of the generated preview images are larger than the original uploads 🙁

            Conscious tech

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search