Mattermost Peer-to-Peer Forum

Who to compact/cleanup database and filesystem storage?


#1

Hi,
is there a way to cleanup/compact the database and storage?

The problem is that our storage needs seem to grow unexpectedly fast, partially because people in some channels temporarily upload files that are deleted minutes later, but not purged from the filesystem.

I am looking for some way (like a cron-job) that would allow a site_admin to purge deleted messages from the database … AND the important part: to purge no longer referenced files from the filesystem.

How would I accomplish this? Is there some commandline flag I missed?

I only found permanently delete user(/team) which seems to wipe a user’s posts, but the files remain.
Also somewhere it was stated that deleting stuff manually would break the DB and stuff and the solution was to not delete stuff, which is not a solution … I mean, even mediawiki managed to make files and revisions permanently deletable. :slight_smile:


#2

Thanks @someone for the feedback,

We currently don’t support this feature but I encourage you to contribute your suggestion to our feature idea forum so it can be discussed, upvoted and considered for a ticket accepting pull requests?

Please include a link back to this forum thread. If you’re interested in implementing, please say so and we’ll prioritize the review.

You get 10 votes in the feature idea forum, and each one influences the future of the project.


#3

I had to work that out by myself…
It seems to work pretty well, including fixing your bugs/inconsistencies :stuck_out_tongue:

And yes, I expect, that you hate me and will never support my instance…
but: https://git.somenet.org/pub/jan/mattermost_foo.git