element-hq / element-hq/synapse
Add an Admin API to forget all rooms with 0 local members
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
**Description:**
Since [`forget_rooms_on_leave`](https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#forget_rooms_on_leave) defaults to false, enabling [`forgotten_room_retention_period`](https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#forgotten_room_retention_period) on your server may leave you with a bunch of old un-forgotten rooms on your server. An Admin API to forget all local rooms with 0 local members would solve this and allow you to easily clean up old unused rooms after enabling `forget_rooms_on_leave` and/or `forgotten_room_retention_period`.
The alternative would be to manually look over all the rooms on your server and manually deleting all rooms with 0 local members. But this can be tedious if you have lots of rooms or users.
Contributor guide
Assessment
This issue has not been assessed yet.