Can I safely delete the content of /data/ directory (files and images)?



I am using a local storage directory for files and images. Can I safely delete all files in it ?
Of course they won’t be accessible through the Mattermost interface (404-error-like ?).
My question is : are they any other side effects ?

Note that I am not asking for a feature (I already voted for this on uservoice a long time ago). I am looking for a workaround because the feature is not implemented today.
I totally understand that Mattermost developers don’t want to implement the feature (because of a business plan, because of other priorities, lack of time…). But I don’t want to add “unlimited” local storage or pay for amazon service for “old files forgotten by all” :stuck_out_tongue:

Thank you for your feedbacks.


Mattermost stores custom branding, custom emoji, and user profile images in the FileSettings.Directory location, in addition to files that have been uploaded by users. If your team doesn’t use any of these features, you should be ok, but I want to stress that deleting the contents of this directory is not recommended, and would encourage you to take a backup of the directory before proceeding, just in case you need to recover the data that you have deleted.