Mattermost, Inc.

Script to delete file attachements

Mattermost keeps file-attachements forever, which might fill up your harddisk.

This script deletes attachements from filesystem if their post has been marked as deleted.
Depends on psycopg2 for db connection.