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

Garbage collection of attachment files once a room is left #10176

Open
leijurv opened this issue Jun 14, 2021 · 5 comments
Open

Garbage collection of attachment files once a room is left #10176

leijurv opened this issue Jun 14, 2021 · 5 comments
Labels
T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@leijurv
Copy link

leijurv commented Jun 14, 2021

Feature request: After leaving a room, I would like a way (maybe an option) to clean up all local data (on my synapse homeserver) that came from that room, such as attachments.

I have gigabytes of attachments from a room that I unthinkingly stayed in for a few months, and I don't know if I can safely delete them without messing up synapse.

@ShadowJonathan
Copy link
Contributor

Is it remote media? Then you can just delete the remote media folder.

@erikjohnston erikjohnston added the T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. label Jun 16, 2021
@erikjohnston
Copy link
Member

We should only do this automatically if all users on the server "forget" the room.

@ShadowJonathan
Copy link
Contributor

I think that's a bad idea, because some users might've forwarded messages from that room to other rooms, and/or used media for other purposes, which then becomes irretrievable after we clean them from a room.

@richvdh
Copy link
Member

richvdh commented Jun 16, 2021

related #4720

@richvdh
Copy link
Member

richvdh commented May 25, 2022

related: #1263

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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