Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to clean old media-store files #584

Open
n0toose opened this issue Jul 15, 2020 · 2 comments
Open

Option to clean old media-store files #584

n0toose opened this issue Jul 15, 2020 · 2 comments

Comments

@n0toose
Copy link
Contributor

n0toose commented Jul 15, 2020

I run my Matrix instance on a Raspberry Pi 4 with very limited space, and most of the old files/thumbnails are unnecessary to me.

It'd be great to have a Playbook integration that would allow you to either clean all of these files safely, or, alternatively, depending on how old they are.

@Broglah1
Copy link

Broglah1 commented Apr 3, 2021

has anyone worked out how to do this yet?

@aaronraimist
Copy link
Contributor

Synapse has admin APIs for deleting remote and local media. https://github.com/matrix-org/synapse/blob/master/docs/admin_api/media_admin_api.md

Note that once you delete local media it is gone forever. Remote media can most likely be fetched again in the future from the remote server (unless they have deleted their local media).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants