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

EraseData Option #50

Closed
AnonymousWebHacker opened this issue Jun 16, 2020 · 1 comment
Closed

EraseData Option #50

AnonymousWebHacker opened this issue Jun 16, 2020 · 1 comment

Comments

@AnonymousWebHacker
Copy link

AnonymousWebHacker commented Jun 16, 2020

I think it would be very good, that they would implement, room, users and options (Data).
-Users -Rooms -Data

Where possible file deletion can be chosen [timestap or media_size + mtime]

1 - By TIMESTAP or / 2 - Purge Local/Remote Media
https://github.com/matrix-org/synapse/blob/master/docs/admin_api/purge_remote_media.rst

something like this ;)

find /var/lib/matrix-synapse/media/ -type f -size +5M -mtime +120 -exec rm  -r {} \;

Erase size >5MB, older than 120 days (example)

this would be possible? Thank you very much for your work.

@awesome-manuel
Copy link
Member

We need some more admin endpoints from Synapse in order to make this work, but sure we're on it.

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

2 participants