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

Server-wide media retention policy #6832

@babolivier

Description

@babolivier

A feature that's both interesting to have and fairly well requested is the ability to configure a media retention policy at the server level.

A first approach would have been to base the TTL of a media on its date of upload, but then we'd likely delete still-in-use avatars, medias used in community descriptions, etc.

Therefore, a preferred approach is to base that TTL on the date it was last accessed at, to ensure we don't delete media that are still being used. FTR, that date of last access is stored by Synapse for both remote and local media, so it's technically doable.

Another thing to consider is that we currently don't have any way in deleting a media in Synapse, so that'd need to be added in.

Also, we'd need to figure out how this feature would handle quarantined media.

cc @rxl881

Related: #6459, #3479, https://github.com/matrix-org/matrix-doc/issues/790

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Disk-Spacethings which fill up the diskT-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.z-feature(Deprecated Label)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions