Purge old room events from synapse, a homeserver for the Matrix network
951
Purge old room events from Synapse, a homeserver for the Matrix network.
Currently, only remote events are purged. Events sent by local users are not deleted, as they may represent the only copies of this content in existence.
You need:
As you need direct database access, the app probably needs to run on the same host / network as synapse.
Without Docker, clone this repository first. Then run:
bundle install --without development
With Docker, use the supplied docker-compose.yml file as an example.
Copy .env.example to .env and adjust the homeserver URL, admin credentials and database URL for your configuration.
The purge will keep old events back as far as DAYS_TO_KEEP days (120 by default).
Without Docker:
ruby synapse-purge.rb
With Docker Compose:
docker-compose run --rm app
Alternatively, deploy using supplied docker-compose.yml on your Docker swarm.
Synapse's Purge History API works asynchronously. In order not to overload the homeserver, we purge rooms one-by-one.
The order of operation is as follows:
Need help or having ideas for improvement? Join our matrix room.
Content type
Image
Digest
Size
334.5 MB
Last updated
over 6 years ago
docker pull decentralize/synapse-purge