Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Room garbage collection #15575

Open
pmaier1 opened this issue May 11, 2023 · 3 comments
Open

Room garbage collection #15575

pmaier1 opened this issue May 11, 2023 · 3 comments
Labels
A-Disk-Space things which fill up the disk A-Retention Retention rules to delete messages after a certain amount of time O-Occasional Affects or can be seen by some users regularly or most users rarely roadmap T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@pmaier1
Copy link

pmaier1 commented May 11, 2023

As an admin I want that all content of a room is deleted when a room is removed for that there is no orphaned events/messages/media and I can keep storage under control as well as comply with legal requirements.

  • Deleting a room should delete all of its contents (events/media)
  • This should work for local rooms as well as remote rooms that comply with the spec
@MatMaul MatMaul added A-Disk-Space things which fill up the disk T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. O-Occasional Affects or can be seen by some users regularly or most users rarely A-Retention Retention rules to delete messages after a certain amount of time labels May 12, 2023
@clokep
Copy link
Member

clokep commented Sep 29, 2023

@pmaier1 Does this differ from #4720?

@DMRobertson
Copy link
Contributor

I don't think media is delete when a room is purged?

(Because the same MXC may be reused in another room? Though I spoke to @kegsay last week who was of the opinion that this is a bug in Synapse.)

@clokep
Copy link
Member

clokep commented Oct 2, 2023

who was of the opinion that this is a bug in Synapse.

It isn't a bug, it is part of the spec that MXCs can be re-used. I think some implementations (matrix-media-repo?) will issue new MXCs without duplicating the backing files though, which seems quite nice...but doesn't help in encrypted rooms.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Disk-Space things which fill up the disk A-Retention Retention rules to delete messages after a certain amount of time O-Occasional Affects or can be seen by some users regularly or most users rarely roadmap T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

4 participants